Forum Moderators: coopster
<entry>
<term>Acheré</term>
<use>Atcheré</use>
</entry>
What I am trying to do is get the xml file to be parsed by php and then turn the data into a viewable webpage.
I think that the é somehow needs to be an é ( or é with a semicolon on the end ) etc....
When creating the parser I am using...
$xml_parser = xml_parser_create('UTF-8'); and if I use html_entity_decode on the string before parsing it, it says: "XML error: not well-formed (invalid token) at line 101"
If I do not use the html_entity_decode or set the parser to UTF-8 the characters are turned in question marks as the documentation states that If PHP encounters characters in the parsed XML document that can not be represented in the chosen target encoding, the problem characters will be "demoted". Currently, this means that such characters are replaced by a question mark. (http://nz.php.net/xml [nz.php.net] )
Any Ideas?
Thanks you very much to all of you that help.
Oh and PHP Version 4.3.10
In most cases, I find that if the encodings are set right, you don't have to convert to entities except for a few characters (& amp;) and in urls and such.
I'm not familiar with the xml_parser functions though.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> to
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> Looks like my PHP skills are up to scratch, just my html is not anymore :)