开发者

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

开发者 https://www.devze.com 2023-02-10 07:03 出处:网络
Please any one tell me that 开发者_JAVA技巧how can I show character like �cija in android textview.

Please any one tell me that 开发者_JAVA技巧how can I show character like �cija in android textview. i.e 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消