note 86797 added to domdocument.savexml

From: Date: Tue, 04 Nov 2008 10:28:08 +0000
Subject: note 86797 added to domdocument.savexml
Groups: php.notes 
Request: Send a blank email to php-notes+get-146110@lists.php.net to get a copy of this message
Since PHP Version 5.2.6, this function spits out an utf-8 encoded string, regardless of the xml encoding, in my case Latin1. I had to alter my class with $str=utf8_decode($doc->saveXML()) to fix a huge problem with all the sites on my server that make use of DOM. These things did NOT fix it: $encoding="Latin1"; // or ISO... whatever $doc = new DOMDocument("1.0",$encoding); $doc->encoding=$encoding; ---- Server IP: 213.249.64.162 Probable Submitter: 82.170.224.148 ---- Manual Page -- http://www.php.net/manual/en/domdocument.savexml.php Edit -- https://master.php.net/note/edit/86797 Del: integrated -- https://master.php.net/note/delete/86797/integrated Del: useless -- https://master.php.net/note/delete/86797/useless Del: bad code -- https://master.php.net/note/delete/86797/bad+code Del: spam -- https://master.php.net/note/delete/86797/spam Del: non-english -- https://master.php.net/note/delete/86797/non-english Del: in docs -- https://master.php.net/note/delete/86797/in+docs Del: other reasons-- https://master.php.net/note/delete/86797 Reject -- https://master.php.net/note/reject/86797 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#146110) next »