jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes printing Extended Character Set values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "printing Extended Character Set values" Watch "printing Extended Character Set values" New topic

printing Extended Character Set values

Ansh Bhai

Joined: Jun 03, 2002
Posts: 10
How do you print characters from extended character set...in java? and display a symbol.
This may well be a dumb question and have a simple answer.
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Surely this is no dumb question.
I don't have much experience in this area, but I do know a couple of things (and hopefully bringing this thread to the top of the pile again might help to grab the attention of someone with some more expereince).
Let's clarify your question.
By "extended" do you mean The Extended ASCII Codes?

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
I'm going to assume that you mean non-ASCII characters.
I'm pretty sure the standard Java console is only capable of displaying ASCII characters (all 255 of them). AWT or Swing can be used to display an Unicode character provided that the appropriate font is installed on the user's machine.
More information on Unicode can be found at http://www.unicode.org/
More information on the character sets that Java does support can be found in the standard API documentation:
Are you getting any ideas?
Don't get me started about those stupid light bulbs.
subject: printing Extended Character Set values
It's not a secret anymore!