note 69394 added to function.json-decode
| From: | giunta dot gaetano at sea-aeroportimilano dot it | Date: | Mon, 04 Sep 2006 15:16:33 +0000 |
| Subject: | note 69394 added to function.json-decode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116661@lists.php.net to get a copy of this message | ||
Take care that json_decode() returns UTF8 encoded strings, whereas PHP normally works with
iso-8859-1 characters.
If you expect to receive json data comprising characters outside the ascii range, be sure to use
utf8_decode to convert them:
$php_vlaues = utf8_decode(json_decode($somedata))
----
Server IP: 66.163.161.117
Probable Submitter: 85.20.248.12 (proxied: 1.1 DMZ01614280)
----
Manual Page -- http://www.php.net/manual/en/function.json-decode.php
Edit -- https://master.php.net/note/edit/69394
Del: integrated -- https://master.php.net/note/delete/69394/integrated
Del: useless -- https://master.php.net/note/delete/69394/useless
Del: bad code -- https://master.php.net/note/delete/69394/bad+code
Del: spam -- https://master.php.net/note/delete/69394/spam
Del: non-english -- https://master.php.net/note/delete/69394/non-english
Del: in docs -- https://master.php.net/note/delete/69394/in+docs
Del: other reasons-- https://master.php.net/note/delete/69394
Reject -- https://master.php.net/note/reject/69394
Search -- https://master.php.net/manage/user-notes.php