#33517 [Opn->Bgs]: encoding decoding bug
| From: | derick@php.net | Date: | Thu, 30 Jun 2005 11:54:33 +0000 |
| Subject: | #33517 [Opn->Bgs]: encoding decoding bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81211@lists.php.net to get a copy of this message | ||
ID: 33517
Updated by: derick@php.net
Reported By: christian at koch dot net
-Status: Open
+Status: Bogus
Bug Type: SimpleXML related
Operating System: Windows 2003 Server
PHP Version: 5.0.3
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
All XML extensions return UTF8, that is expected.
Previous Comments:
------------------------------------------------------------------------
[2005-06-30 13:50:51] christian at koch dot net
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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33517&edit=1