XML encoding problem to Flash
- Started
- Last post
- 7 Responses
- fues
So I'm trying to get these special characters in Flash from an XML file.
We first tried to url encode everything and unescape it in Flash, it did work for some caharcters but not for example Ú.
Then we tried to put the encoding on UTF-8, but then all special characters appeared as question marks in the xml.
Now we put the encoding on iso-8859-1, the special characters show up in the XML but Flash can't read them.
Does anyone have a solution for this?
Thanks so much.
- 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.