Loading ISO-8859 (Latin1) characters from XML

Ask a Question related to Macromedia Flash Data Integration, Design and Development.

  1. #1

    Default Loading ISO-8859 (Latin1) characters from XML

    Have some experience loading XML files, but this is a new issue to me. I see my
    accented characters displaying properly in my text editor. And I've confirmed
    that my font is OK in Flash by testing a dynamic text box--the accents in the
    test appear OK, so it's not the XML file or the font, it seems to be the XML
    loader itself.

    My XML file looks like this (there are Latin accented characters in the text
    node:

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <projects>
    <project id="0">
    <_iID>0</_iID>
    <_sProjectDescription>La piratería es una práctica, tan antigua como la
    navegación misma, en la que una embarcación privada o una estatal amotinada
    ataca a otra en aguas internacionales o en lugares no sometidos a la
    jurisdicción de ningún Estado, con un propósito personal para robar su carga,
    exigir rescate por los pasajeros, convertirlos en esclavos y muchas veces
    apoderamiento de la nave misma.</_sProjectDescription>
    </project>
    </projects>

    BUT, once Flash loads the XML, I trace it out and the output misses these
    characters:
    <_sProjectDescription>La pirater?a es una pr?ctica, tan antigua como la
    navegaci?n misma, en la que una embarcaci?n privada o una estatal amotinada
    ataca a otra en aguas internacionales o en lugares no sometidos a la
    jurisdicci?n de ning?n Estado, con un prop?sito personal para robar su carga,
    exigir rescate por los pasajeros, convertirlos en esclavos y muchas veces
    apoderamiento de la nave misma.</_sProjectDescription>

    Is this a known issue I don't know about? I can't find anything in the
    documentation and have scoured the web for hours for an answer.

    Any help would be greatly appreciated! Below for reference is my load function
    for reference.Thanks.

    SB

    --

    function loadXML()
    {
    trace("loadXML()");
    map_xml.ignoreWhite = true;
    map_xml.onLoad = function(success:Boolean) //handleLoad becomes a method of
    map_xml
    {
    if(success)
    {
    trace("loadXML: XML Status: " + map_xml.status);
    trace("loadXML: XML load success. XML:");
    trace(map_xml);
    handleXMLLoad();
    }
    else
    {
    trace("loadXML: ***ERROR - map_xml.load FAILED.*** Status/Error code: "+
    map_xml.status);
    }
    }
    map_xml.load("xml/Map_data.xml"); //read from XML file.
    }

    sake_boy Guest

  2. Similar Questions and Discussions

    1. #38755 [NEW]: Parser error when loading a file with odd characters
      From: shadow at overdrawn dot net Operating system: Debian PHP version: 5.1.6 PHP Bug Type: SimpleXML related Bug...
    2. change encoding from UTF-8 to ISO-8859-1
      Hi, I have a .Net Web Service and the encoding of the SOAP Messages is always UTF-8, and I need to change the web service so that it encodes with...
    3. #9188 [Com]: it seems that mysql-module doesn't support any charsets except latin1
      ID: 9188 Comment by: makisfm at mailbox dot gr Reported By: changx at www-test dot ygi dot edu dot cn Status: ...
    4. Unmixing UTF-8 / ISO-8859-1
      I have some data which is mixed UTF-8 and ISO-8859-1 / ISO-8859-15 which I would like to display together in a regular web page, but have yet to be...
    5. ssh, bash and mysql, odd behaviour of polish characters (iso-8859-2)
      Hi, I am seeing odd behaviour when pasting polish characters into an ssh session running in an xterm (or konsole). I haven't had to bother with...
  3. #2

    Default Re: Loading ISO-8859 (Latin1) characters from XML

    Try this:

    System.useCodePage = true;

    Cheers,
    Gorka
    [url]http://www.AquiGorka.com/blog[/url]
    Gorka Ludlow Guest

  4. #3

    Default Re: Loading ISO-8859 (Latin1) characters from XML

    Thanks... from what I've been reading, this is supposedly an unreliable solution as it can't be predicted to work for all users.

    Any other suggestions out there?
    sake_boy Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139