0

I'm designing an android application and the user can input a Name in EditText. When I enter the name in English it works, but when I try it in another language like Arabic, in the database it's saved like this: ?????

How can I make the EditText work with Arabic?

Termininja
  • 6,620
  • 12
  • 48
  • 49
batool_42
  • 13
  • 1
  • 7
  • It's not fault of your EditText. – Shree Krishna Mar 24 '16 at 11:06
  • How you got to know `???` are stored in database. Definitely you may have logged that. That may be because your IDE and PC doesn't support arabic. EditText has nothing to do with it. – Shree Krishna Mar 24 '16 at 11:10
  • I'm working in genymotion with xampp localhost so I know what is stored in my database, and my laptop is supporting Arabic :( – batool_42 Mar 24 '16 at 11:12
  • Possible duplicate of [Android default character encoding](http://stackoverflow.com/questions/2207631/android-default-character-encoding) – Bonatti Mar 24 '16 at 11:18
  • please check your database from your devise maybe the problem is in the server, by default android support arabic – Mounir Elfassi Mar 24 '16 at 12:49
  • I think you need to change the **character encoding** in your database. (are you using SQLite or some other external DB?) – Vucko Mar 24 '16 at 14:36
  • I check my DB, I think the problem is with the DB not EditText :( ,, I'm using MySQL database , any help please? – batool_42 Mar 26 '16 at 14:42
  • character encoding is utf-8 ,, I read that the utf-8 support arabic – batool_42 Mar 26 '16 at 14:43

0 Answers0