File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unicode characters in command prompt

 
Nathan Bellinger
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to display the unicode characters for card suit symbols in a non-GUI poker program. I wrote it in notepad and am compiling/running it from command prompt. The current method I have of trying to display them is assigning the \uXXXX unicode escape to a char variable, but it's just displaying as '?'. Is there anything I need to do different?
Help would be greatly appreciated. This is the last thing keeping me from completing this project.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

That could be tricky. Many terminals/command line environments can only display ASCII characters, and will show everything else with "?". At the least, you'd need to set it to use a font that contains those characters, since I don't think there's a console/terminal in existence that can mix several fonts in the same line.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic