ID: 28154 Updated by: [EMAIL PROTECTED] Reported By: jay at kuantic dot com Status: Open Bug Type: *XML functions -Operating System: linux fedora core 1 +Operating System: * -PHP Version: 5.0.0RC1 +PHP Version: 5.0.0RC2 New Comment:
See also #28169: SimpleXML not parsing scandinavian characters correctly. Previous Comments: ------------------------------------------------------------------------ [2004-04-26 11:36:28] jay at kuantic dot com Description: ------------ Simple Xml seems to output only utf-8. No matter how specified in encoding='iso-8859-1' and not simple function to change encodage. Reproduce code: --------------- $xmlstr = <<<XML <?xml version='1.0' encoding='iso-8859-1'?> <root> <section> <title>Gestion des Objets</title> <title>Gestion des Géolocalisation</title> <title>Autres questions...</title> </section> </root> XML; $xml = simplexml_load_string($xmlstr); foreach ($xml->section->title as $title) { echo $title, '<br />'; } ?> Expected result: ---------------- Gestion des Objets Gestion des Géolocalisation Autres questions... Actual result: -------------- Gestion des Objets Gestion des Géolocalisation Autres questions... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28154&edit=1