Those are html encodings. If you put them into an HTML textField "as is" they will work fine (if that is what you are after).
Escape and unescape deal with URL encoding which is a different thing. If you want the html encoding to turn into the actual characters then I don't think flash can do it without you writing your own parser. Giles -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Coning Sent: 25 September 2006 16:16 To: Flashcoders mailing list Subject: [Flashcoders] DECODE XML Encoded Characters? Alright, what am I doing wrong? I have tried over and over to decode an XML string, but Flash won't decode it. The XML is returning special Characters (&'><) encoded. I have tried to use escape, unescape, encode, decode and I can't get anything to convert the encoded text to its character representation. Here is the node: <ConfigParamValue>Special Characters - & " ' < > </ConfigParamValue> var str:String = String(XPath.selectNodes(MyXML_cs.getResults(), "//ConfigParamValue/text()")[0]); I've tried: trace("A: " + escape(str)); // > Special Character - & " ' < > trace("B: " + unescape(str)); // > Special Character - & " ' < > trace("C: " + decode(str)); // > Special%20Character%20%2D%20%26amp%3B%20%20%26quot%3B%20%20%26apos%3B%20 %20%26lt%3B%20%20%26gt%3B%20%20 trace("D: " + encode(str)); // > Special Character - & " ' < > I'd greatly appreciate if someone could let me know how to decode this text! Thank you! Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please "reply to" sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

