I´ve written a XML parser using PHP´s DOM XML functions. Problem is: the XML documents hold text in Portuguese... and xmldoc() doesn´t seem to handle accents correctly.
My XML docs start with:
<?xml version='1.0' encoding="ISO-8859-1"?>
When I omit the "enconding=..." part, xmldoc() returns NULL. When this part is present, accents are converted by xmldoc() into some strange characters.
Questions:
1) Does anyone know how to solve it?
2) Does anyone experienced using the other XML function set (the one that uses the SAX method) to parse documents with accentuation?
Thanks in advance,
Bruno