Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-4406

Character Encoding options broken, falsely reporting UTF-8


    • Type: Improvement
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Aptana Studio 1.5.2, Aptana Studio 2.0, Aptana Studio 3.0 (Final), Aptana Studio 3.0 b13, Aptana Studio 3.0 b14, Aptana Studio 3.0 b15, Aptana Studio 3.0 b16, Aptana Studio 3.0 b17, Aptana Studio 3.0 b18, Aptana Studio 3.0 b19 (RC), Aptana Studio 3.0.1, Aptana Studio 3.0.2, Aptana Studio 3.0.3, Aptana Studio 3.0.4, Aptana Studio 3.0.5, Aptana Studio 3.0.6, Aptana Studio 3.0.7, Sprint 2012-01, Aptana Studio 3.0.8, 2012 Sprint 02, 2012 Sprint 03
    • Component/s: Editor, Validation
    • Environment:

      Mac OS X (any version) w/ Titanium Studio - Tested on Mac OS X Lion and Snow Leopard and issue is present.

    • Story Points:


      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




            • Assignee:
              cwilliams Christopher Williams
              rickm Rick Mills
            • Watchers:
              1 Start watching this issue


              • Created:

                Git Integration