aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes confused with unicode Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "confused with unicode" Watch "confused with unicode" New topic
Author

confused with unicode

Simeon Shi
Ranch Hand

Joined: Dec 09, 2001
Posts: 35
hi...
why the code followed output the '?' character
**************************
char a = 823;
System.out.println(a);
**************************
but i tried another block of code;
System.out.println((int)'?');
the output is 63 which is the same as ASCII.
why?
3x in advance
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
Probably because the display you were looking at only supports ASCII and not a complete Unicode font set.
Simeon Shi
Ranch Hand

Joined: Dec 09, 2001
Posts: 35
yeah, that hit the point
thanks a ton!
Simeon
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: confused with unicode