note 94658 added to function.simplexml-load-string

From: Date: Tue, 17 Nov 2009 10:28:11 +0000
Subject: note 94658 added to function.simplexml-load-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-162972@lists.php.net to get a copy of this message
If you want to set the charset of the outputed xml, simply set the encoding attribute like this : simplexml_load_string('<?xml version="1.0" encoding="utf-8"?><xml/>'); The generated xml outputed by $xml->asXML will containt accentuated characters like 'é' instead of &#xE9;. Hope this help ---- Server IP: 69.147.83.197 Probable Submitter: 82.66.78.117 ---- Manual Page -- http://www.php.net/manual/en/function.simplexml-load-string.php Edit -- https://master.php.net/note/edit/94658 Del: integrated -- https://master.php.net/note/delete/94658/integrated Del: useless -- https://master.php.net/note/delete/94658/useless Del: bad code -- https://master.php.net/note/delete/94658/bad+code Del: spam -- https://master.php.net/note/delete/94658/spam Del: non-english -- https://master.php.net/note/delete/94658/non-english Del: in docs -- https://master.php.net/note/delete/94658/in+docs Del: other reasons-- https://master.php.net/note/delete/94658 Reject -- https://master.php.net/note/reject/94658 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#162972) next »