header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
suresh
Points:0
Posts:0

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



1
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.

2
Mark
Points: 380
Posts:0
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

3
suresh
Points: 0
Posts:0
7/19/2011 6:51:23 PM



@Tyson and Mark,

Thanks for the answer.. I'll try doing them... :)


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 4+2 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions