[wp-trac] [WordPress Trac] #28786: wp_send_json silently fails on non UTF-8 strings

WordPress Trac noreply at wordpress.org
Thu Oct 16 11:57:05 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.1
Component:  General           |     Version:  3.5
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------

Comment (by mdawaffe):

 I worry about `mb_detect_encoding()` but don't have any data or experience
 to validate or assuage that worry.

 I know we're using this code on WordPress.com in places.  In other places,
 we use code that explicitly converts from the `blog_charset` (no attempt
 at auto-detection) to UTF-8.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28786#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list