note 50470 added to ref.simplexml
| From: | nelson_menezes at yahoo dot co dot uk | Date: | Tue, 01 Mar 2005 13:05:43 +0000 |
| Subject: | note 50470 added to ref.simplexml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85710@lists.php.net to get a copy of this message | ||
Note that SimpleXML expects to both read and output XML in UTF-8 encoding. You'll need to add a
line such as this at the top of your input XML file if it isn't saved in UTF-8 (adjust to
whatever encoding used):
<?xml version="1.0" encoding="ISO-8859-1" ?>
On the output side of things, if you're not serving/handling UTF-8, you'll need to use
utf8_decode(). Common mistake: http://bugs.php.net/bug.php?id=28154
----
Manual Page -- http://www.php.net/manual/en/ref.simplexml.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50470
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50470&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50470&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50470&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50470&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50470&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50470&report=yes
Search -- http://master.php.net/manage/user-notes.php