|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-11-20 14:58 UTC] pschmandra at hotmail dot com
Description:
------------
After upgrading PHP5 the xml_parse() parser throws
Warning: xml_parse() [function.xml-parse]: input conversion failed due to input error, bytes 0xA3 0xEE 0x7D 0x5F
when parsing Chineese Traditional BBC News Feed.
newsrss.bbc.co.uk/rss/chinese/trad/taiwan_hk/rss.xml.
This function works perfectly using PHP4. Googling this error brings ~800 similar results.
Reproduce code:
---------------
if(!xml_parse($this->feedReader, $BBC_data)){
$this->in_error = true;
$this->error_msg = sprintf("XML Error: %s at line %d", xml_error_string(xml_get_error_code($this->feedReader)), xml_get_current_line_number($this->feedReader));
}
Expected result:
----------------
Expect xml_parse() function to parse feed without crashing ala PHP4.
Actual result:
--------------
xml_parse() function crashes throwing
Warning: xml_parse() [function.xml-parse]: input conversion failed due to input error, bytes 0xA3 0xEE 0x7D 0x5F
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 18:00:01 2025 UTC |
All supported encodings listed below cause the xml_parse() function to error out parsing any Chinese Traditional RSS Feeds published by the BBC using PHP5.1.6 with a UTF-8 default_charset. xml_parser_create() xml_parser_create('') xml_parser_create('UTF-8') xml_parser_create('ISO-8859-1') xml_parser_create('US-ASCII')