|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-06-11 09:51 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 02:00:01 2025 UTC |
Description: ------------ When decoding a JSON encoded string which contains a special character like ? or ?, json_decode() returns a null. Reproduce code: --------------- $foo = '[{"city":"gen?ve"}]'; $obj = json_decode($foo); var_dump($obj); Expected result: ---------------- array 0 => object(stdClass)[1] public 'city' => string 'gen?ve' (length=6) Actual result: -------------- null