note 88897 added to function.wddx-deserialize

From: Date: Thu, 12 Feb 2009 13:57:15 +0000
Subject: note 88897 added to function.wddx-deserialize
Groups: php.notes 
Request: Send a blank email to php-notes+get-150570@lists.php.net to get a copy of this message
When writing your wddx file manually with an UTF-8 aware editor and saving it in utf-8, if your data gets its special characters mysteriously scrambled, try to add an xml header that marks the output as iso-8859-1, like this one: <?xml version="1.1" encoding="iso-8859-1" ?> This makes the wddx decode function treat the input as iso-8859-1, so it will not try to treat it as utf-8 and do an implicit decode to iso-8859-1. You will then have read all string data in the wddx packet in their original utf-8 encoding, so that 'echo' and other output functions will produce the intended result if you have set the output encoding to utf-8. (Bugs reports on this behaviour seem to be treated as bogus, so it would seem in order to point out this incorrect and highly confusing side-effect.) ---- Server IP: 217.160.72.57 Probable Submitter: 91.32.124.34 ---- Manual Page -- http://www.php.net/manual/en/function.wddx-deserialize.php Edit -- https://master.php.net/note/edit/88897 Del: integrated -- https://master.php.net/note/delete/88897/integrated Del: useless -- https://master.php.net/note/delete/88897/useless Del: bad code -- https://master.php.net/note/delete/88897/bad+code Del: spam -- https://master.php.net/note/delete/88897/spam Del: non-english -- https://master.php.net/note/delete/88897/non-english Del: in docs -- https://master.php.net/note/delete/88897/in+docs Del: other reasons-- https://master.php.net/note/delete/88897 Reject -- https://master.php.net/note/reject/88897 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150570) next »