#42095 [Opn->Ver]: Missing useful encoding information for XMLReader/libxml

From: Date: Wed, 25 Jul 2007 16:58:39 +0000
Subject: #42095 [Opn->Ver]: Missing useful encoding information for XMLReader/libxml
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969377129@lists.php.net to get a copy of this message
ID: 42095 Updated by: nicobn@php.net Reported By: rbarton at coexia dot com -Status: Open +Status: Verified Bug Type: Documentation problem Operating System: N/A PHP Version: Irrelevant Assigned To: nicobn Previous Comments: ------------------------------------------------------------------------ [2007-07-25 08:47:46] rbarton at coexia dot com Description: ------------ There is no reference in the XMLReader or libxml documentation to the fact that libxml uses UTF-8 as its internal character set, in all cases (as per http://www.xmlsoft.org/encoding.html#internal). As such, the output from any XMLReader function or property will always be in UTF-8, regardless of the input encoding specified. Anyone unfamiliar with libxml may assume that the encoding parameter passed to XMLReader::open() would cause the output to be in the same encoding, which is not the case for any encoding except UTF-8. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42095&edit=1

« previous php.doc (#969377129) next »