Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unrecgonized characters

796468May 23 2009 — edited May 25 2009
In my program, I must recognize a bunch of alt-code characters as input. I am having a problem with Java not recognizing characters.

For example, the simple character '▬' (alt+22):
char c = '▬';
System.out.println(c);
prints out:
?
How do I get Java to recognize these simple characters?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 22 2009
Added on May 23 2009
20 comments
342 views