|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-30 13:54 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 07:00:01 2025 UTC |
Description: ------------ a simple xml file like: <?xml version="1.0" encoding="iso-8859-15" standalone="yes"?> <p> <name>?ml?ute sind d??f und ?chei?e</name> </p> saved as a windows ansi file, loaded with the script $xml = simplexml_load_file("test.xml"); echo " bla ". $xml->name; will convert the ansi xml elements into UTF-8 an in the PHP Script you must use utf8_decode(). Ich think thats a bug. Reproduce code: --------------- $xml = simplexml_load_file("test.xml"); echo " bla ". $xml->name; Expected result: ---------------- if I use a ISO encoded XML file with a valid XML header, the SimpleXMLElement object should provide an iso string.