Why does writeUTFBytes mess up non-english characters?
Posted
by Lost_in_code
on Stack Overflow
See other posts from Stack Overflow
or by Lost_in_code
Published on 2010-04-18T20:28:18Z
Indexed on
2010/04/18
20:33 UTC
Read the original article
Hit count: 368
I'm writing all sorts of multi lingual text to .txt files using AIR's
fileStream.writeUTFBytes()
For english characters everything works perfectly. But as soon as there are chinese, arabic or any other non-english characters the sentences are totally messed up.
For example:
???????????....
becomes
ÂØpÁùħßÂèîÊëÑÂO±Â?àÁöÑÁ°ÆÊ=°Áà±....
How can this be fixed?
© Stack Overflow or respective owner