unicode chineese in actionscript 3/flash
So I have simplified Chinese saved in my database, characters like
&am开发者_StackOverflow社区p;#25925;事的背景。
which is 故事的背景。
I have embed the font for simplified Chinese but the chars do not convert. Is there a function is as3 to convert unicode?
Many thanks,
R
If you use htmlText to set the textfields, Flash should do the conversion automatically. If not, you will need to convert the string to utf8 (not decimal) before sending it to Flash with something like this: http://annevankesteren.nl/2005/05/character-references
精彩评论