Doc #51279 [Opn->Csd]: Documentation is weak at "DOMDocument uses UTF-8"
| From: | kalle@php.net | Date: | Wed, 20 Oct 2010 08:53:12 +0000 |
| Subject: | Doc #51279 [Opn->Csd]: Documentation is weak at "DOMDocument uses UTF-8" | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5285@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51279&edit=1
ID: 51279
Updated by: kalle@php.net
Reported by: david dot gausmann at measx dot com
Summary: Documentation is weak at "DOMDocument uses UTF-8"
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: 5.3.2
-Assigned To:
+Assigned To: kalle
Block user comment: N
New Comment:
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.
I added the note to the common DOM classes; DOMDocument, DOMNode and
DOMElement on their synopsis pages.
Previous Comments:
------------------------------------------------------------------------
[2010-10-20 10:52:37] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=304551
Log: Fixed bug #51279 (Documentation is weak at "DOMDocument uses
UTF-8")
------------------------------------------------------------------------
[2010-03-12 08:19:25] david dot gausmann at measx dot com
Description:
------------
After using the DOM-Objects (e. g. DOMDocument, DOMNode, ...) for
parsing a XML file I got angry, because the source file was iso-8895-1
(and both the DOMDocument->xmlEncoding and DOMDocument->encoding told me
"iso-8895-1") but the output was utf-8.
After some minutes I expected that on the Introduction page of DOM the
following note is written:
"DOM extension uses UTF-8 encoding. Use utf8_encode() and utf8_decode()
to work with texts in ISO-8859-1 encoding or Iconv for other encodings"
Well this node is missing on the pages where the content access is
described.
E. g. DOMNode->textContent, DOMNode->nodeValue,
DOMElement->GetAttribute, and so forth.
I personally whould like to have an implemented auto-change-encoding to
whatever-you-want, but this is not part of the DOM specification. :(
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51279&edit=1