I'm trying to do an export of clients to an XML file, and have tremendous difficulty getting CF MX 6.1 to escape characters properly.
This code: <cfsetting enablecfoutputonly="yes"> <cfcontent type="text/xml; charset=utf-8"> <cfoutput><?xml version="1.0" encoding="UTF-8"?> <test> <something>#XMLFormat("Allée")#</something> </test> </cfoutput> is outputting: <?xml version="1.0" encoding="UTF-8"?> <test> <something>Allée</something> </test> ... which is correct escaping of the é character. But this: <cfcontent type="text/xml; charset=utf-8"> <cfxml variable="XMLData"> <test> <cfoutput><something>#XMLFormat("Allée")#</something></cfoutput> </test> </cfxml> <cfoutput>#tostring(XMLData)#</cfoutput> outputs: <?xml version="1.0" encoding="UTF-8"?> <test> <something>Allée</something> </test> ... which is NOT correct. It should've escaped the character. Wrapping the whole thing in a <cfprocessingdirective suppresswhitespace="yes" pageencoding="utf-8"> helps nothing. I'm going crazy here. Any ideas? Jack ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250702 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4