4

Is there anyone has this problem?

With Arabic and Persian language,

I am using axios. And axios using XmlHttpRequest on react-native. There is no problem with iphone. But on android, The characters are broken. Not only those Arabic or Persian language but also other all JSON parsed data characters. I am using application/json for request, response. But I can see correct data on iphone and web. Only on android react native.

What is the problem??

Do I have to process something on the server??

Is it because some ambiguous character ? Like RTL or some special charater code in Arabic or Persian language??

I can't find the reason....

Anyone could help me?

Dongmin Kim
  • 83
  • 1
  • 5

1 Answers1

1

What we found out that when typing Arabic rn fetch blob thinks that text is invalid utf8. That is why it tries to send it as base64. So, in response you need to parse base64 text using Buffer or pako.

Yestay Muratov
  • 1,338
  • 2
  • 15
  • 28