note 79306 added to function.simplexml-element-asXML
| From: | tim at osu1 dot php dot net | Date: | Tue, 20 Nov 2007 09:15:43 +0000 |
| Subject: | note 79306 added to function.simplexml-element-asXML | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-132428@lists.php.net to get a copy of this message | ||
I think there is a bug while creating files. When I use the UTF-8 charset and use chars like
ä,ö,ü the written file is not valid.
So
$xml->asXML("datei.xml");
and
file_put_contents("datei.xml",$xml->asXML());
deliver different results. The second is valid and correct.
Sorry for my english.
----
Server IP: 212.124.37.9
Probable Submitter: 217.237.185.201
----
Manual Page -- http://www.php.net/manual/en/function.simplexml-element-asXML.php
Edit -- https://master.php.net/note/edit/79306
Del: integrated -- https://master.php.net/note/delete/79306/integrated
Del: useless -- https://master.php.net/note/delete/79306/useless
Del: bad code -- https://master.php.net/note/delete/79306/bad+code
Del: spam -- https://master.php.net/note/delete/79306/spam
Del: non-english -- https://master.php.net/note/delete/79306/non-english
Del: in docs -- https://master.php.net/note/delete/79306/in+docs
Del: other reasons-- https://master.php.net/note/delete/79306
Reject -- https://master.php.net/note/reject/79306
Search -- https://master.php.net/manage/user-notes.php