10 Replies Latest reply on Sep 4, 2009 2:07 PM by jdwild

    Special characters in XML document

    jdwild Level 1

      I have a Flash file saved as version 8 with the following script calling an xml file:


      //init TextArea component
      myText.html = true;
      myText.wordWrap = false;
      myText.multiline = false;

      //load in XML
      xml = new XML();
      xml.ignoreWhite = true;
      xml.onLoad = function(success){
              myText.text = xml;



      My xml file contains the following:

      <?xml version="1.0" encoding="iso-8859-1"?>
      <![CDATA[Smith's dog & cat are "crazy"]]>


      When posted online my flash file displays the encoding tag in the xml file.

      AND the apostrophe, ampersand and quote marks display as html code instead of the actual character.

      I can take the encoding tag out of the xml file but my characters still don't display correctly.


      My dynamic text field in flash (myText) does have special characters embedded, plus I have them entered manually in the field for 'include these characters'.


      Does anyone have suggestions for me?

      You can view this test file at http://wilddezign.com/preshomes_name2.html