简体   繁体   English

Swing JLabel将unicode“ \\ u21B5”显示为文本不起作用

[英]Swing JLabel display unicode “ \u21B5 ” as text not working

I am working with virtual keyboard in my application. 我在应用程序中使用虚拟键盘。 I tried to display the arrow keys in the keyboard by unicodes, Some unicodes are displaying correctly others displaying as junk. 我试图通过Unicode在键盘上显示箭头键,某些Unicode正确显示,而另一些则显示为垃圾。

Ex: 例如:

\u2191 - Displaying
\u21B5 - Not displaying

Make sure your OS includes a font that supports unicode. 确保您的操作系统包括支持unicode的字体。

Try one of the fonts from this list: http://unicode.org/resources/fonts.html 尝试使用以下列表中的一种字体: http : //unicode.org/resources/fonts.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM