sproutcore / abbot

SproutCore Build Tools [deprecated]
http://www.sproutcore.com
88 stars 44 forks source link

Ensure that default external encoding of UTF-8 is always used in build tools #17

Closed wagenet closed 13 years ago

wagenet commented 13 years ago

From: https://github.com/sproutcore/sproutcore/issues#issue/38

This issue became apparent when I attempted to run the build tools from an ant task. I believe the java VM defaults to ascii encoding and so I was get a Fatal encoding error. Wycats helped me out in irc, and i discovered "Encoding.default_external" was ASCII while running from ant but UTF-8 when running from the command line.

As I quick fix to the problem, I have added "Encoding.default_external="utf-8" to the top of my sproutcore.rb to ensure it is always used.

wycats commented 13 years ago

Fixed