[wp-meta] [Making WordPress.org] #1748: utf8 encoding for json outputs

Making WordPress.org noreply at wordpress.org
Sat Jun 4 02:40:08 UTC 2016


#1748: utf8 encoding for json outputs
------------------------------+-----------------
 Reporter:  dd32              |      Owner:
     Type:  defect            |     Status:  new
 Priority:  normal            |  Milestone:
Component:  Plugin Directory  |   Keywords:
------------------------------+-----------------
 WordPress includes a `wp_json_encode()` method for dealing with non-UTF8
 strings before passing them to `json_encode()`.

 The standalone API handler doesn't have this available to it, and as such,
 doesn't handle JSON outputs for data containing non-utf8 data (which often
 occur within readme's and reviews).

 I would suggest we should just borrow `wp_json_encode()` and namespace it
 appropriately, or we could alternatively include a compat file for stand-
 alone instances when WordPress hasn't been included.

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1748>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list