7/19/2011 6:06:26 AM
Title:
Rendering non-english content
Hi all..
I have an xml file in which i have data in portuguese language(which has special chars like an alphabet with symbol on top/bottom). from my flex app, i read that xml and show it in textarea and labels. But when i run the app, the special chars are stripped off and its not shown in UI. but i could see it visible in the xml. wat do i need to do to make those chars also visible?? i use flex 3
Tyson
Points: 680
Posts:0
7/19/2011 10:48:44 AM
your xml should be UTF-8 encoded and saved also in UTF-8 format.
Other than this the font that you are using should be embeded into your flash file. This will ensure that whether the fonts are present on the user system or not they will show up.
7/19/2011 10:55:12 AM
the best way while using HTML or special characters text in XML file is to insert text inside CDATA tag. The text inside the CDATA tag is not parsed by XML parser in flash so, no XML error occurs in this case.
Also do not set "System.useCodepage = true" . Its by default false. So no need to set it.
Use standard fonts like Verdana, _Sans or Tohoma
7/19/2011 6:51:23 PM
@Tyson and Mark,
Thanks for the answer.. I'll try doing them... :)