Displaying chess pieces with unicode in eclipse using java

后端 未结 4 1429
长情又很酷
长情又很酷 2021-01-05 01:36

Im just trying to display some unicode chess symbols in eclipse using java, however it just prints out the random rectangles, and unless chess pieces have taken a radical ch

4条回答
  •  感情败类
    2021-01-05 02:05

    I tried your code and it does work correctly on my Linux. Tried it from the bare shell and from Eclipse. This is not a Java problem but a console charset problem. You have to look into the encoding your console accepts and make sure it is UTF8. Eclipse shouldn't factor in that.

提交回复
热议问题