Do I need to do something to display UTF-8 characters in a TextView?
I am trying to display the following characters:
ืืื, ืืืืจืืช ืจืืื ืืืืช, ืืื ืืืช ืื ืืืจืืช, ืืืชืื ืืืขืืคืืชืืื. ืืชืจื ืืืืจืืืืช ืืืืืื ืืืืจ ืืืืข ืืืืื ืคืจืืคืื ืืืฉื ืฉื ืื ืืืื. ืื ืืื ืืืขืื ืืื ืืืฆืืจืฃ ืืฉืืจืืช, ืืืื ืืืคืก ืืจืฉืื ืืืชืจ ืืืืฆืจ ืืขืฆืื ืคืจืืคืื.
If I use Log.d(TAG, text)where it textcontains the characters that I'm going to display, it correctly displays the output of logcat. If I then use textview.setText(text), all that is displayed in the TextView is fields.
From what I read, many of these fonts, such as Hebrew, etc., are not supported by Android, however, if I send myself an email with these characters, they display correctly in the Gmail and Tiwtter applications.
How can I correctly display these characters?
UPDATE:
I installed the AnySoftKeyboard application and the Hebrew language pack, and suddenly my application will be able to display Hebrew. If I remove both of them, my application can still display Hebrew. That makes no sense to me.
source
share