Project: aptanastudio
Issue APSTUD-4406: Character Encoding options broken, falsely reporting UTF-8
A well known issue with deploying Titanium projects to android that has existed for a long, long time is problems with the Android emulator requiring files to be UTF-8. So naturally if you ran across the issue when using TiStudio, you would right click the files, go to properties and check your 'Text file encoding' was set to UTF08. It automatically chooses the option titled 'Inherited from container (UTF-8)'. So according to Aptana/TiStudio, the file is set to UTF-8. Yet the android emulator is still throwing a wobbly over a non UTF-8 file. I then opened the exact file in Coda (by panic.com) to find that every single one of the Titanium Studio files was in face set to "Western (Mac OS Roman)" and not UTF-8. I edited the files to UTF-8 via Coda and hey presto, the android project works. The same action in Aptana/TiStudio does not work, it leaves the files in their old encoding. The bug here is quite simply that the Aptana text file encoding options for files dont change the file encoding at all. This has been present since at very least when Appcelerator bought out Titanium Studio. More info on this bug can be found here: http://developer.appcelerator.com/question/88591/unicodedecodeerror-utf8-codec-cant-decode-byte-0x80-in-position#comment-114842
Story points: 13