[wp-trac] [WordPress Trac] #40560: REST API: Unicode characters are escaped in the response
WordPress Trac
noreply at wordpress.org
Wed Feb 21 16:34:45 UTC 2018
#40560: REST API: Unicode characters are escaped in the response
--------------------------+-----------------------
Reporter: rilwis | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: REST API | Version: 4.7
Severity: major | Resolution:
Keywords: close | Focuses: rest-api
--------------------------+-----------------------
Changes (by hwgehring):
* status: closed => reopened
* resolution: wontfix =>
* severity: normal => major
Comment:
@subrataemfluence @rmccue @jnylen0
This is actually a major problem and tagging as wontfix sends a very
concerning message about how legitimate this API actually is.
Unicode-escaped text is only valid JSON in certain exceptional cases.
Whether the language itself deviates away from the standard by defaulting
to escaped unicode is irrelevant. Whether API consumers
can/can't/won't/don't handle unicode-escaped characters is irrelevant.
https://tools.ietf.org/html/rfc8259#section-8.1
As it stands the JSON response returned from the WP REST API is unusable,
incorrectly tagged as UTF-8 charset, and conforms to no standard at all.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40560#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list