The moose likes Beginning Java and the fly likes Displaying Char's: Unicode vs ASCII Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Displaying Char Watch "Displaying Char New topic

Displaying Char's: Unicode vs ASCII

Douglas TerBush

Joined: Aug 27, 2002
Posts: 2
I'm just learning Java now, I read that Java uses Unicode, slightly over 50,000 characters and still supports ASCII 127 characters. I wrote a quick script to display all the unicode characters and got question marks for it. I rewrote it for 127 characters of Unicode and got it to display correctly.

I take it that Unicode only displays the characters loaded in your O/S??? Just curious actually.
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Yes, your OS has to support Unicode as well in order to display the characters that don't coincide with the ASCII character set. So what OS are you using?


Java API Documentation
The Java Tutorial
It is sorta covered in the JavaRanch Style Guide.
subject: Displaying Char's: Unicode vs ASCII
Similar Threads
How a character save in 2 bytes in Java?
java is ASCII or Unicode ??
Unicode Character
How to get ASCII Value
Displaying Greek values read from Database