Title: JSON encode character encoding
Last modified: August 21, 2016

---

# JSON encode character encoding

 *  Resolved [Maxaud](https://wordpress.org/support/users/maxaud/)
 * (@maxaud)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/json-encode-character-encoding/)
 * Some text on a custom API call I have is returning characters encoded weird.
 * examples:
    © = \u00a9 – = \u2014 sometimes spaces return an odd character string
   too.
 * [http://wordpress.org/extend/plugins/json-api/](http://wordpress.org/extend/plugins/json-api/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [dphiffer](https://wordpress.org/support/users/dphiffer/)
 * (@dphiffer)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/json-encode-character-encoding/#post-3813458)
 * Hi Maxaud, I’m adding an option `json_unescaped_unicode` in the next release 
   that will convert \u-escaped unicode characters to their unescaped equivalents.
 *  Plugin Author [dphiffer](https://wordpress.org/support/users/dphiffer/)
 * (@dphiffer)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/json-encode-character-encoding/#post-3813459)
 * Just released this in version 1.0.9.
 *  Thread Starter [Maxaud](https://wordpress.org/support/users/maxaud/)
 * (@maxaud)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/json-encode-character-encoding/#post-3813460)
 * That’s awesome, thank you.
 *  [wanula](https://wordpress.org/support/users/wanula/)
 * (@wanula)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/json-encode-character-encoding/#post-3813508)
 * Hi,
    can you give an example of how to use this option? Thanks
 *  [monkeypunch3](https://wordpress.org/support/users/monkeypunch3/)
 * (@monkeypunch3)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/json-encode-character-encoding/#post-3813510)
 * Wanula,
 * It’s on the other notes page under the output modifying arguments section. I 
   think setting json_unescaped_unicode to 1 in the query string will do it.
 *  [pullyl](https://wordpress.org/support/users/pullyl/)
 * (@pullyl)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/json-encode-character-encoding/#post-3813514)
 * Even with this option I am still seeing unicode in my output (i.e. –). Are there
   any other options that I should toggle to remove this? The call I am using is:
   
   [http://www.easyasapplepie.com/?json=1&json_unescaped_unicode=1](http://www.easyasapplepie.com/?json=1&json_unescaped_unicode=1)
 * Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘JSON encode character encoding’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-api.svg)
 * [JSON API](https://wordpress.org/plugins/json-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-api/reviews/)

## Tags

 * [encoding](https://wordpress.org/support/topic-tag/encoding/)
 * [json](https://wordpress.org/support/topic-tag/json/)

 * 6 replies
 * 5 participants
 * Last reply from: [pullyl](https://wordpress.org/support/users/pullyl/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/json-encode-character-encoding/#post-3813514)
 * Status: resolved