cout Posted February 23, 2008 Share Posted February 23, 2008 Hey all, I am building a game that uses standard playing cards, and I want to print out the unicode character for the suits. I am doing this in Java. Below is some basic test code to see if i could print these characters. 2663 is the unicode value of the character for clubs. Whenever I run this, all I get is a question mark. String clubs = "u2663"; System.out.println(clubs); Thanks for any help. Quote Link to comment Share on other sites More sharing options...
digip Posted February 23, 2008 Share Posted February 23, 2008 Hey all, I am building a game that uses standard playing cards, and I want to print out the unicode character for the suits. I am doing this in Java. Below is some basic test code to see if i could print these characters. 2663 is the unicode value of the character for clubs. Whenever I run this, all I get is a question mark. String clubs = "u2663"; System.out.println(clubs); Thanks for any help. You need a unicode font installed on your system to see them and have the program set to use that unicode font when dispalying the reults. I had this problem when trying to copy chinese and japanese fonts from web pages that only showed up as square boxes until I installed the font. I could then copy and paste it into other things like googles language tools. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.