[wp-trac] [WordPress Trac] #28786: wp_send_json silently fails on non UTF-8 strings
WordPress Trac
noreply at wordpress.org
Fri Jul 11 01:01:24 UTC 2014
#28786: wp_send_json silently fails on non UTF-8 strings
------------------------------+------------------
Reporter: pento | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.0
Component: General | Version: 3.5
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
------------------------------+------------------
Comment (by pento):
attachment:28786.5.diff falls back to treating the string as UTF-8 if it
can't detect the encoding. This is the same behaviour as
`wp_check_invalid_utf8()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28786#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list