XML encoding problem to Flash
- Started
- Last post
- 7 Responses
- stewart0
are you sure the characters actually exist in the (embedded?) font you're using in flash?
- E__________0
utf-8 should work but make sure your font is unicode and if you're embedding chars (inst. import into lib.) make sure to also embed all the special chars.
- fues0
Yep, the font contains the chars and I embedded them..
- stewart0
url encoding should be avoided like the plague.
if u get your vars from a unicode saved txt or an utf-8 encoded xml you'll have no reason to use url encoding.
unfittoprint
(Aug 25 05, 07:05)
- Fariska0
Yesterday i had a similar problem, some charachters like quotes appeared as " and so on.
I had to write a function to replace the " with the charachter \" in flash.
If you need, i can mail it.
- unfittoprint0
there are special characters and there are "special characters".
if ampersands and backslashes are used within your node values [ie. html text] you should enclose it with CDATA tags.
http://www.w3schools.com/xml/xml…
- fues0
Thanks guys, and you know what? It works now we put the UTF to 16 instead of 8.