[wp-trac] [WordPress Trac] #30471: json_encode() fails on non-utf8 strings
WordPress Trac
noreply at wordpress.org
Mon Nov 24 03:21:49 UTC 2014
#30471: json_encode() fails on non-utf8 strings
--------------------------+------------------------------
Reporter: pento | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by pento):
[attachment:30471.2.diff] will run whenever PHP < 5.5, and `$json`
contains the string `null`.
Also, in case we decide to go with [attachment:30471.diff], it contains a
bug - it returns `null` instead of `'null'`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30471#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list