note 92302 deleted from function.json-decode by googleguy
| From: | googleguy@php.net | Date: | Fri, 30 Nov 2012 05:39:21 +0000 |
| Subject: | note 92302 deleted from function.json-decode by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-192211@lists.php.net to get a copy of this message | ||
Note Submitter: confusioner at msn dot com
----
if you can not decode unicode characters with json_decode, use addslashes() while using json_encode.
The problem comes from unicode chars starting with \ such as \u30d7
$json_data = addslashes(json_encode($unicode_string_or_array));