REST API encoding problem
-
Hi,
WordPress’s REST API works great exept it encodes a few cyrillic characters ( ” and ‘ ) in unicode. All other cyrillic letters and stuff shows fine.
Here’s an example:
"title": { "rendered": "АСДФГХЙКЛЖ”ШЩ>?Ч!@№$%€§*()_——“ENG”________асд”асд”" },How can I fix that?
Thank you!
-
-
Hello there,
Many thanks for reaching out.
Are you able to confirm the URL of the website that you need assistance with please?
Many thanks.
-
-
Hi,
It seems that your site shortyok.com uses the open-source WordPress software and isn’t hosted at WordPress.com. This forum offers support for sites using the WordPress.com hosting platform.You can check out the following overview if you’d like to learn more about these two different services:
https://wordpress.com/support/com-vs-org/Regarding your question, I believe that the rendered content would be encoded as expected in the browser (the HTML rather than the JSON response). Please see this thread for further information:
https://wordpress.stackexchange.com/a/303881.Another great resource is the WordPress REST API Handbook, which offers lots of valuable information:
https://developer.wordpress.org/rest-api/I hope that helps!
-
Hi there!
As @ironnysh explained above, your site is using the WordPress.org software and your question is more geared towards the self-hosted version of WordPress. Please check out the resources shared above. If you have more questions, please post on the WordPress.org support forum here: https://wordpress.org/support/forums
Regards
-
-
Hi there,
We don’t delete forum threads. So it’ll be here. If you’d like us to delete any personal information (like your site address), let us know and we can redact them for you.
Regards
- The topic ‘REST API encoding problem’ is closed to new replies.