#30951 [NEW]: XML document charset unrecognized
From: neon at neon-line dot net
Operating system: FreeBSD 4.10
PHP version: 5CVS-2004-12-01 (dev)
PHP Bug Type: SimpleXML related
Bug description: XML document charset unrecognized
Description:
------------
SimpleXML messes up at least ISO-8859-15 charset.
Reproduce code:
---------------
<?PHP
$xmlData = '<?xml version="1.0" encoding="ISO-8859-15"
standalone="yes"
?>
<dataSegment>
<Cdata>ÄÄöö</Cdata>
</dataSegment>
';
$xml = simplexml_load_string($xmlData);
echo $xml->Cdata."\n";
?>
Expected result:
----------------
ÄÄöö
Actual result:
--------------
Ã
Ã
öö
--
Edit bug report at http://bugs.php.net/?id=30951&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30951&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30951&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30951&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30951&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30951&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30951&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30951&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30951&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30951&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30951&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30951&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30951&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30951&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30951&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30951&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30951&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30951&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30951&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30951&r=mysqlcfg
Thread (2 messages)
- neon at neon-line dot net