note 97434 added to domdocument.savexml

From: Date: Mon, 19 Apr 2010 18:30:17 +0000
Subject: note 97434 added to domdocument.savexml
Groups: php.notes 
Request: Send a blank email to php-notes+get-168427@lists.php.net to get a copy of this message
If your data is UTF-8-encoded and you discover that saveXML() turned all non-ASCII characters into numeric entities (e.g. ä -> &#xF6;): Chances are that the XML declaration has been missing when you loaded the source data. Try adding <?xml version="1.0" encoding="UTF-8"?> to the beginning of the document before you read it with load() or loadXML(). Then the non-ASCII characters should remain untouched. Worked for me. (This will probably solve the problem vikramvmalhotra at hotmail dot com has described below.) ---- Server IP: 212.124.37.9 Probable Submitter: 91.57.111.164 ---- Manual Page -- http://www.php.net/manual/en/domdocument.savexml.php Edit -- https://master.php.net/note/edit/97434 Del: integrated -- https://master.php.net/note/delete/97434/integrated Del: useless -- https://master.php.net/note/delete/97434/useless Del: bad code -- https://master.php.net/note/delete/97434/bad+code Del: spam -- https://master.php.net/note/delete/97434/spam Del: non-english -- https://master.php.net/note/delete/97434/non-english Del: in docs -- https://master.php.net/note/delete/97434/in+docs Del: other reasons-- https://master.php.net/note/delete/97434 Reject -- https://master.php.net/note/reject/97434 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#168427) next »