when I am parsing an Arabic Json I am getting characters like this
áãÍÉ ãä ÇáÓíÑÉ
These are latin unicode characters. The problem is that the database collation used is Latin 1. This data is converted to UTF-8. I am decoding this JSON using UTF-8. Is there any way to convert it into Arabic? As database collation cannot be altered.
I want to know whether it is possible to convert the data to Arabic before displaying in the textview?
Asked
Active
Viewed 493 times
2

Pratheesh
- 764
- 1
- 11
- 24
-
yes it is i had the same problemm when trying to display greek charcters. but i converted them to utf-8. Those answer helped me http://stackoverflow.com/questions/32782413/cannot-properly-insert-greek-characters-in-mysql-database – Kostas Drak Nov 26 '15 at 11:29
-
That scrambled data uses `windows-1256` encoding. – VahidN Nov 26 '15 at 12:33
-
Exactly. Can i decode it in Android? – Pratheesh Nov 26 '15 at 12:35
1 Answers
0
Solved the issue by converting the data from database to UTF8. The data in database was in Latin 1 format. First it is converted to UTF8 using PHP. And this converted data is used for JSON formation. And in receiving side (android app) its decoded using UTF8. And then it worked perfectly for me. Thanks all..

Pratheesh
- 764
- 1
- 11
- 24