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

Swing JLabel display unicode " \u21B5 " as text not working

我在我的应用程序中使用虚拟键盘。我试图通过 unicodes 在键盘中显示箭头键,一些 unicodes 正确显示其他显示为垃圾。

例如:

\u2191 - Displaying
\u21B5 - Not displaying

确保您的 OS 包含支持 unicode 的字体。

尝试使用此列表中的一种字体:http://unicode.org/resources/fonts.html