I am sending an XML object as a parameter on a .send() to a web service.
>From my observation Flex sends the xml data encoded with a "macintosh"
>encoding (mac-
roman), even when sent from a Windows box. (I checked the traffic and that is
what I see)
I thought Flex would use utf-8 or utf-16, but any non-ascii chars arrives at
the destination
as a 'macRoman' character!
I need to inform the receiving party of the encoding used thus the need to
prefix the xml
stream with the <?xml..?> line and indicate the proper encoding.
Right now I'm using something like:
soap.send('<?xml version="1.0"
encoding="macintosh"?>'+formData.toXMLString());
where formData is my XML object.
Is there any other way? or is this how one does it in Flex?
And what about changing the encoding, to say utf-8? Is there a way to
tell/force Flex to
use other encoding?
Thanks for any pointers,
julio carneiro
ps: maybe I see the encoding as "mac" because I'm generating my .swf on OS X?