Sharan De Silva
Sharan De Silva

Reputation: 608

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.

Ex:

\u2191 - Displaying
\u21B5 - Not displaying

Upvotes: 1

Views: 887

Answers (1)

Mottie
Mottie

Reputation: 86413

Make sure your OS includes a font that supports unicode.

Try one of the fonts from this list: http://unicode.org/resources/fonts.html

Upvotes: 2

Related Questions