Displaying a specific unicode character in another android version

I am currently trying to display a specific Unicode character ("\u24BA",β’Ί)

that I am getting from my API and am trying to display it in a TextView.

The display works great on Android 5+. However, when I try to use Android 4.2 and 4.4, I got different behavior.

Android 4.2 replace character with empty string. Android 4.4 will replace the character with uppercase E.

My original case was that the Android 4+ font does not handle this Unicode character and I decided to implement Typeface with Roboto_Medium.ttf

Typeface medium = Typeface.createFromAsset(context.getAssets(), "Roboto-Medium.ttf");
name.setTypeface(medium);
name.setText("β’Ί");  or name.setText(Html.fromHtml("\u24BA");

      

I got the same result as above.

Any idea?

+3
android android-typeface


source to share


No one has answered this question yet

Check out similar questions:

1188
How do I get the build / version number of your Android app?
1152
Difference between gravity and layout_gravity on Android
1002
How do I display an alert dialog on Android?
960
How to rotate the screen of Android emulator?
768
All com.android.support libraries must use the same version specification
688
Android standard button with different color
24
Japanese characters look like Chinese on Android
3
How to convert English characters to ANSII in java android
0
Unicode character 0x25BA not showing on Android
-1
Displaying a Unicode string under User Control in Xamarin (Android)



All Articles
Loading...
X
Show
Funny
Dev
Pics