0 Replies Latest reply on Feb 26, 2009 2:27 PM by Sunil Ramaiah

    Displaying Unicode in Flex

    Sunil Ramaiah
      Hi,

      I have some unicode characters that I would like to display in Flex. My web service sends the content with the unicode characters in \uxxxx format. In the actionscript web service call return handler, I get the XML using lastResult. Then I get the string from it and set it on the button. The button shows - \u03B8 - This is theta. I actually want the character for theta to be shown there.

      If I create a string variable like var text:String = "\u03B8 - This is theta", the greek character shows up properly. The \u03B8 is actually escaped and in the debugger, I see \\u03B8. Hence the button shows \u03B8.

      Now how do I get around this and display the greek character ?

      Thanks,
      Sunil.