Ask a Question related to Macromedia Flash Data Integration, Design and Development.
-
sake_boy #1
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
-
#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... -
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... -
#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: ... -
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... -
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... -
Gorka Ludlow #2
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
-
sake_boy #3
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



Reply With Quote

