How can I support Farsi (Persian) text in Android?

user1308405 picture user1308405 · Apr 8, 2012 · Viewed 17.9k times · Source

I am getting Arabic text from server successfully. Retrieved text I want display in code but its showing boxes instead of Arabic text. Assume that t array values are Arabic text from server.

string[] t={" "};
Textview tv = (Textview) findviewByid(R.id.text);
tv.setText(t[0]);

Answer