Project: appceleratorstudio
Issue TISTUD-993: Unicode Code Points from the SMP are encoded according to  CESU-8 rather than the expected UTF-8
h2. Problem Titanium Studio doesn't convert to UTF-8 correctly in case of Unicode code points starting at U+10000. When I copy-and-paste a symbol located in the SMP (supplementary multilingual plane) from Safari/Chrome into Titanium Studio and try to save the file, the output is not UTF-8, but CESU-8. h2. Steps to reproduce {code} Code Point: U+1D6FB Unichar: (Due to TC-421, I cannot paste the character here. Please take it from: http://www.unicode.org/charts/PDF/U1D400.pdf) UTF-8: 0xF0 0x9D 0x9B 0xBB Name: MATHEMATICAL ITALIC NABLA UTF-16: 0xD835 0xDEFB CESU-8: 0xED 0xA0 0xB5 0xED 0xBB 0xBB {code} http://www.decodeunicode.org/de/u+1d6fb/properties http://www.decodeunicode.org/de/u+d835/properties http://www.decodeunicode.org/de/u+defb/properties You can read the output file like this in the terminal: {code} hexdump -C {code} You will see two byte sequences (representing the high and low surrogate from UTF-16, Java's native character format) consisting of three bytes, that are encoded according to UTF-8. However, expected output is one four-byte sequence.
Story points: 8