File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 12769
    
    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
 
 
subject: confused with unicode