Hello,
I am getting data from a mySQL DB using PHP. From this information I create a XML file which is then read from Flash.
My problem is with French accents. They are saved fine to the DB and written fine to the XML file. At least I think so. Here is an example of the XML file that is created with french accents.
<?xml version='1.0' encoding='UTF-8' ?>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:dc = 'http://purl.org/dc/elements/1.1/' xmlns='http://purl.org/rss/1.0/'>
<channel rdf:about='http://www.whereever.com/'>
<title>TITLE</title>
<link>[url]http://www.somewhere.com[/url]</link>
<description>Description</description>
</channel>
<item>
<title>French Title</title>
<description>médias situés Collèges</description>
<dc:date>2003-11-14</dc:date>
</item>
<item>
<title>Another French Title</title>
<description> 2ième réseau</description>
<dc:date>2003-11-09</dc:date>
</item>
</rdf:RDF>
When this XML file is read in Flash it does not produce the correct accents. If I go in and manually edit the XML file (like insert a space somewhere) and then re-save the XML file. Then reload the Flash object, everything works fine. The accents come out as they should.
Does anyone know of any fixes for this, or has had any experience with the same type of problem. Perhaps it is in the way I am opening and writing the XML file using PHP.
Thanks in advance,
-Josh