[wp-trac] [WordPress Trac] #30471: json_encode() fails on non-utf8 strings
WordPress Trac
noreply at wordpress.org
Tue Nov 25 05:00:38 UTC 2014
#30471: json_encode() fails on non-utf8 strings
--------------------------+------------------------------
Reporter: pento | Owner: pento
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Changes (by pento):
* owner: => pento
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"30561"]:
{{{
#!CommitTicketReference repository="" revision="30561"
When `json_encode()` returns a JSON string containing `'null'` in PHP 5.4
or earlier, `wp_json_encode()` will now sanity check the data, as older
versions of PHP failed to encode non UTF-8 characters correctly, instead
returning `'null'`.
Fixes #30471.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30471#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list