note 55946 added to ref.dom
| From: | lhaire at lettres dot unige dot ch | Date: | Thu, 18 Aug 2005 16:39:34 +0000 |
| Subject: | note 55946 added to ref.dom | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-93843@lists.php.net to get a copy of this message | ||
Text nodes contain utf-8 encoding internally, no matter if you specify iso-8859-1 in the file you
parse or create a new doc using
$xmltree = new DomDocument('1.0','iso-8859-1');
The solution is to use utf8_decode
$original =
utf8_decode(
$myitem->getElementsByTagName('ORIGINAL')->item(0)->nodeValue);
----
Manual Page -- http://www.php.net/manual/en/ref.dom.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55946
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55946&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55946&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55946&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55946&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55946&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55946&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55946&report=yes
Search -- http://master.php.net/manage/user-notes.php