Android 菜单不显示德语变音符号 Ü
我刚刚在我的应用程序中添加了德语本地化,我真的很想知道为什么菜单不显示一些德语元音变音。
menu.xml:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
...
<item
android:id="@+id/menu_about"
android:title="@string/app_menu_about"
android:icon="@android:drawable/ic_menu_info_details"
/>
</menu>
strings.xml:
<string name="app_menu_about">äöüÄÖÜß</string>
仅正确显示小写变音符号和 ß。大写变音显示为 AOU。所以它们显示为普通字符。 如果我删除菜单项图标,变音符号将正确显示。为什么我不能有大写变音符号和图标?
您知道我可以做些什么来正确显示大写变音符号并使用图标吗?
我不想本地化更多语言,但如果我无法正确显示所有特殊字符,那么这项工作就不值得。
I just added a German localization to my app, and I am realy wondering, why the menu doesn't display some German umlauts.
menu.xml:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
...
<item
android:id="@+id/menu_about"
android:title="@string/app_menu_about"
android:icon="@android:drawable/ic_menu_info_details"
/>
</menu>
strings.xml:
<string name="app_menu_about">äöüÄÖÜß</string>
only the lowercase umlauts and the ß are shown correctly. The uppercase umlauts are show as AOU. So they are displayed as normal chars.
If I remove the menu item icon, the umlauts are shown correctly. Why can't i have upper case umlauts and an icon?
Is there anything you know I can do to be able to show the uppercase umlauts correctly, and also use an icon?
I wan't to localize more languages, but if I can not display all special chars correctly it's not worth the work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这只是一个疯狂的猜测,但它可能会显示它们,但由于某种原因,显示图标时顶部的几个像素被切断。
This is just a wild guess, but it may be displaying them but for some reason the top few pixels are being cut off when the icon is displayed.
到目前为止我发现了什么(如果有人遇到这篇文章):http: //code.google.com/p/android/issues/detail?id=3974
使用页面底部的[电子邮件受保护]提供的解决方法。
What I have found so far (if anyone comes across this post): http://code.google.com/p/android/issues/detail?id=3974
Use the workaround presented by [email protected] at the bottom of the page.