Method One:
Load XML with Urlloader, then convert data to ByteArray
With Bytearray.readmultibyte (bytes.length, "Utf-8")
The converted string is then coerced into XML
var loader:urlloader = new URLLoader ();
Loader.dataformat = urlloaderdataformat.binary;
var urlrequest:urlrequest = new URLRequest (source);
Loader.addeventlistener ("complete", Completehandler);
Loader.load (URLRequest);
private var Completehandler (evt:event): void
{
var Bytes:bytearray = ByteArray (Evt.currentTarget.data);
var xmlstr:string = Bytes.readmultibyte (bytes.length, "utf-8");
var xml:xml = XML (XMLSTR);
Trace (XML);
} Method Two: Test down, in fact, the simplest thing is to convert your local XML file format to UTF-8, of course, your flex code is also UTF-8. Casually mention, when converting UTF-8 with Notepad Save As, I started with editplus tools do not. Method Three: Add Initialize= "Flash.system.system.usecodepage=true" to the mx:application in the Mxml file in flex to solve the problem of flex reading foreign XML garbled