[wp-trac] [WordPress Trac] #40560: REST API: Unicode characters are escaped in the response

WordPress Trac noreply at wordpress.org
Tue May 9 07:10:55 UTC 2017


#40560: REST API: Unicode characters are escaped in the response
--------------------------+------------------------------
 Reporter:  rilwis        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  4.7
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:  rest-api
--------------------------+------------------------------

Comment (by subrataemfluence):

 @rmccue I agree with you.

 Replying to [comment:4 rmccue]:
 > Using the Unicode-encoded format ensures the greatest interoperability
 with all clients, which is part of the reason it's the default encoding
 used internally by PHP. The Unicode-escaped format is a valid part of
 JSON, and client decoders should correctly handle this.
 >
 > Apart from not being as nice when you're viewing the raw JSON data, the
 data is a valid representation of the data (that is, it's not a lossy
 output format) and decoders should correctly understand these characters.
 >
 > I'm in favour of closing this as wontfix.

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


More information about the wp-trac mailing list