Sending UNICODE encoded XML from ASP.NET to Flash

Hi Guys,
I don’t quite know if this problem lies with ASP.NET side or with the Flash side
So if you could help me out, it’d be awesome :slight_smile:

I’m in the flash side construction of an application that gets its data from .Net code using the Response.Write method
The output to flash is XML formatted string which I capture in Flash and store it in an XML variable.

The problem comes when special characters are sent in the XML, for example if any attribute or node value has an apostrophe in it
(e.g. <market_info name=‘Jun’s ABC’/>)
the application breaks and the XML is not parsed properly as it recognizes the apostrophe as an terminating character

After some experimentation with a stand alone flash application taking data from local static,dummy XML files,we found that substituting Unicode values for special characters eg. ~ Flash was automatically interpreting them correctly.
However when the same was tried by sending data using Response.Write, instead of interpreting the Unicode, Flash would display the code as is on screen.

Is there any way to properly send Unicode encoded Strings to Flash from ASP.NET?