This is the behavior of the htmlText property of the Flash Player's TextField and I don't believe it can be changed. As for why it's using &#...; to represent control characters... that's the way that XML works. As for why the character values are encoded in hex rather than decimal, that's just the choice that some player engineer made. Most low-level software engineers consider hex more natural than decimal because of hex's close relationship to binary, the One True Base. I don't know anything about PHP4, but I doubt that decoding the hex entity is qny harder than decoding the decimal one. BTW, hex D is decimal 13, not 15. - Gordon
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of enginefloor Sent: Saturday, September 08, 2007 10:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Hexadecimal XML encoding of carriage returns: 
 I'm capturing data from a text area, and binding it to an attribute in an XMLListCollection before packing it up and shipping it off with HTTPService to a PHP page. For whatever reason carriage returns are being encoded as & # x D ; (pretend there's no whitespace) which, as was pointed out to me, indicates we should interepret '#xD' as a hexadecimal 'D', indicating decimal 15, the decimal value of the ASCII carriage return. Why this encoding isn't just & # 1 5 ; , which I guess would make way too much sense, is beyond me. I suspect the same thing is happening for other special characters, so any solution would need to handle the 'full' range of values. Does anyone know how I can either A. Prevent Flex from using this encoding B. Find a ready-made PHP4 compatible function to get rid of these things Thank you very much.