ID: 30951 Updated by: [EMAIL PROTECTED] Reported By: neon at neon-line dot net -Status: Open +Status: Bogus Bug Type: SimpleXML related Operating System: FreeBSD 4.10 PHP Version: 5CVS-2004-12-01 (dev) 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 Try echo utf8_decode($xml->Cdata)."\n"; Previous Comments: ------------------------------------------------------------------------ [2004-12-01 18:20:30] neon at neon-line dot net 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 this bug report at http://bugs.php.net/?id=30951&edit=1