Doc #51279 [NEW]: Documentation is weak at "DOMDocument uses UTF-8"
| From: | david dot gausmann at measx dot com | Date: | Fri, 12 Mar 2010 07:19:26 +0000 |
| Subject: | Doc #51279 [NEW]: Documentation is weak at "DOMDocument uses UTF-8" | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-4035@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: 5.3.2
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Documentation is weak at "DOMDocument uses UTF-8"
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 bug report at http://bugs.php.net/bug.php?id=51279&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51279&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51279&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51279&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=51279&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51279&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51279&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51279&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51279&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51279&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51279&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51279&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51279&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51279&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51279&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51279&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51279&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51279&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51279&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51279&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51279&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51279&r=mysqlcfg