Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Displaying Char's: Unicode vs ASCII

 
Douglas TerBush
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Layne
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic