php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #42095 Missing useful encoding information for XMLReader/libxml
Submitted: 2007-07-25 08:47 UTC Modified: 2007-07-28 23:47 UTC
From: rbarton at coexia dot com Assigned: nicobn (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
 [2007-07-25 08:47 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-28 23:47 UTC] nicobn@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Nov 19 22:00:02 2025 UTC