[wp-trac] [WordPress Trac] #30471: json_encode() fails on non-utf8 strings

WordPress Trac noreply at wordpress.org
Mon Nov 24 01:55:45 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:                |     Focuses:
--------------------------+------------------------------

Comment (by pento):

 In [changeset:"30534"]:
 {{{
 #!CommitTicketReference repository="" revision="30534"
 `json_encode()` returns different results for non UTF-8 strings in PHP
 5.5+, versus earlier versions of PHP.

 This fixes the unit tests that fail in earlier versions, see #30471 for
 fixing this globally in `wp_json_encode()`.
 }}}

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


More information about the wp-trac mailing list