java - Arabic text displayed as ??? in Android -


i trying display arabic text in android application, arabic text displayed ???.

it works fine when set text of textfield directly xml file using android:text="مثل", when try set java code mtextview.settext("مثل");, displays question marks character (???).

according answer how support arabic text in android?, arabic supported android 3.x , above.

if android:text works fine , setting code not, source files (*.java) not using utf-8 encoding. need check editor/ide settings - android studio go settings -> editors -> file encodings , check files , project encoding.


Comments

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

php - Using str_replace to translate a MySQL Table in html -

asp.net mvc - Cannot display error message on Editor or EditorFor -