note 45627 added to function.xml-parser-create

From: Date: Mon, 13 Sep 2004 11:02:21 +0000
Subject: note 45627 added to function.xml-parser-create
Groups: php.notes 
Request: Send a blank email to php-notes+get-76606@lists.php.net to get a copy of this message
I'm not absolutely sure but, the encoding specified in the xml_parser_create() seems to be the OUTPUT encoding, not the INPUT encoding (what is automatically detected). In 5.0.0 and 5.0.1 it defaults (the OUTPUT parameter) to ISO-8859-1. That's the reason because we have to fill the parameter if we want strings encoded differently. In 4.x strings were encoded to the auto-detected encoding (ISO files returned ISO strings and UTF files returned UTF strings) In 5.0.2 and so on this have changed again (if I'm not wrong) and returned strings will be always in UTF-8 (unless you specify a different OUTPUT encoding parameter, of course). See http://bugs.php.net/bug.php?id=29711 for this. Is this correct? Documentation should be changed a bit to explain it...? Is the 5.0.2 behavior the definitive one? Ciao, Eloy :-) ---- Manual Page -- http://www.php.net/manual/en/function.xml-parser-create.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45627 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45627&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45627&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#76606) next »