Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Issue with JSON content containing Arabic

$
0
0

@markbloomfield wrote:

Greets :slight_smile:

So I have an app which is being rendered in 2 languages: English + Arabic.

It's using a WordPress backend with the WP Rest API plugin which will allow the client to add new content to the app. The English part of the app is built and running smoothly.

However I've run into an issue when trying to use Arabic. When there's Arabic in the JSON, I get an error along the lines of

Unexpected token W in JSON at position 0

When I remove the Arabic from the content so that the JSON is arabic free, problem goes away.

I'm assuming this is something to do with the encoding for Arabic etc?

Any thoughts to how I should be doing this to get around the problem?

TIA.

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>