ID: 30964 Updated by: [EMAIL PROTECTED] Reported By: pitchoune at vbulletin-fr dot org -Status: Open +Status: Bogus Bug Type: XML related Operating System: Windows PHP Version: 5CVS-2004-12-02 (dev) New Comment:
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. See #30951 Previous Comments: ------------------------------------------------------------------------ [2004-12-02 17:53:07] pitchoune at vbulletin-fr dot org Description: ------------ When you want to display phrases or words with special characters in ISO format by XML, the special characters are not displayed correctly. Reproduce code: --------------- <? error_reporting(E_ALL & ~E_NOTICE); $xml = '<?xml version="1.0" encoding="ISO-8859-1"?><x>Test with some special characters: é è ù ô à</x>'; $p = xml_parser_create(); xml_parser_set_option($p, XML_OPTION_CASE_FOLDING, 0); xml_set_element_handler($p, 'start_elem', 'end_elem'); xml_set_character_data_handler($p, 'cdata'); xml_parse($p, $xml, true); xml_parser_free($p); function start_elem($parser, $tagname, $attributes){} function end_elem($parser, $tagname){} function cdata($parser, $data){ echo $data; } ?> Expected result: ---------------- Test with some special characters: é è ù ô à Actual result: -------------- Test with some special characters: é è ù ô à ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30964&edit=1