在Android中如何正确显示Ȳ(安培;#562)? [英] How to display Ȳ (Ȳ) properly in Android?
问题描述
我试图显示这个角色ȲȲ。所有其他字符,除了这个(Ȳ)正确显示。例如,↑,显示良好,但不Ȳ。
I'm trying to display this character Ȳ Ȳ . All other characters display correctly except this(Ȳ). For example, ↑ , displays well but not Ȳ.
我都试过Ȳ和code(Ȳ),如:
I've tried both Ȳ and the code(Ȳ) like:
mEditText.setText(Html.fromHtml("<h5><font color=\"Gray\">Ȳ</font></h5>");
mEditText.setText(Html.fromHtml("<h5><font color=\"Gray\">Ȳ</font></h5>");
我怎样才能正确地显示这个角色?
How can I display this character correctly?
推荐答案
您可以尝试使用 \ u0232
作为一个字符串:
You could try using \u0232
as a String:
mEditText.setText("\u0232");
我发现了采用Android Studio的上下文菜单选项的UNI code值转换为基本拉丁语,这是有帮助的经常最近。
I found out the unicode value using Android Studio’s context menu option "Convert to Basic Latin" which has been helpful quite often recently.
得到了相同的结果;架空杆为y权
Got same result; the overhead bar is at right of Y
好奇!我只是想什么,我建议用一个EditText和一个面包(如可以在我的previous截图中可以看出),两者的工作只是正常。
Curious! I just tried what I recommended using an EditText as well as a Toast (as can be seen in my previous screenshot) and both worked just as expected.
这篇关于在Android中如何正确显示Ȳ(安培;#562)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!