Unicode Character uncompatibility?

前端 未结 2 1058
你的背包
你的背包 2021-01-14 22:14

I have a problem with character encoding using swing on Java. I want to write this character:

\"\\u2699\"

That is a gear on a simple JButt

2条回答
  •  长发绾君心
    2021-01-14 22:41

    As @Andreas points out, the button needs to be set to use a font that supports this Unicode value. For sorting out compatibility issues such as this one, fileformat.info is a great resource. Here is the list of fonts known to support the Gear character. These include for example DejaVu Sans and Symbola.

提交回复
热议问题