note 45627 rejected from function.xml-parser-create by betz

From: Date: Mon, 13 Sep 2004 17:27:11 +0000
Subject: note 45627 rejected from function.xml-parser-create by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76622@lists.php.net to get a copy of this message
Note Submitter: stronk7 at contiento dot com ---- 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 :-)

« previous php.notes (#76622) next »