ID: 50139 User updated by: gros at mpdl dot mpg dot de Reported By: gros at mpdl dot mpg dot de -Status: Feedback +Status: Open Bug Type: XML Reader Operating System: Mac OS-X 10.6.2 -PHP Version: 5.3.0 +PHP Version: 5.3.0 -> 5.2.5 New Comment:
Apologies, apparently there are two php installations on my system. The one that the xampp installation uses is actually 5.2.5, not 5.3.0. I am using DOMDocument now for parsing and it works like a charm. Previous Comments: ------------------------------------------------------------------------ [2009-11-11 12:47:59] j...@php.net And please provide the complete script you used. It works fine for me with very crude script.. ------------------------------------------------------------------------ [2009-11-11 12:46:47] gros at mpdl dot mpg dot de Thanks, but the file is telling it's encoding, actually. Both in the header (application/xml) and in the file: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> And also using $xml_parser = xml_parser_create("UTF-8"); does not help! ------------------------------------------------------------------------ [2009-11-11 12:42:16] j...@php.net Duh, i missed the very first line in your xml file. :) So what you're actually reporting is that the input encoding isn't detected properly? ------------------------------------------------------------------------ [2009-11-11 12:41:12] j...@php.net It might work better if your xml file told the encoding OR if you told the xml_parser_create() the input encoding.. ------------------------------------------------------------------------ [2009-11-10 18:02:57] gros at mpdl dot mpg dot de Just to add: I also used curl for fetching this piece of xml and the result was the same. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/50139 -- Edit this bug report at http://bugs.php.net/?id=50139&edit=1