简体   繁体   中英

How to show dynamic character coming from server to textView in android

Please any one tell me that how can I show character like �cija in android textview. ie some spanish word I have to show in textview

Use Unicode Format for this, It will work for sure. I Use Chinese character and it worked pretty well for me.

Do something like this for an example

 TextView t = (TextView)findViewById(R.id.TextView01);
 t.setText(Character.toString('\u4E01'));

What so ever character you want to print put its unicode value in the string.
It will for sure show you the Chinese character in view. if you are not able to see your character even after putting its unicode. then check for the authentication of unicode character is it right unicode or not.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM