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

WordPress Trac noreply at wordpress.org
Tue Jul 8 04:25:29 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     |     Focuses:
--------------------------+------------------
Changes (by pento):

 * keywords:  has-patch needs-unit-tests => has-patch


Comment:

 attachment:28786.4.diff

 * Adds unit tests
 * Tries to use `mb_convert_encoding()`, if available
 * Removes some old code

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


More information about the wp-trac mailing list