This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Unicode 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 » Java in General
Bookmark "Unicode" Watch "Unicode" New topic
Author

Unicode

Paul Keohan
Ranch Hand

Joined: Mar 15, 2000
Posts: 411
How can I see the unicode number for a character?
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4442
    
    5

try casting to an int
System.out.println( Integer.toHexString((int)uniChar) );
I think you can handle padding the left with zeros
------------------
---
Junilu Lacar
Sun Certified Programmer for the Java™ 2 Platform


Junilu - [How to Ask Questions] [How to Answer Questions]
Paul Keohan
Ranch Hand

Joined: Mar 15, 2000
Posts: 411
That worked great.
Thanks!
 
wood burning stoves
 
subject: Unicode
 
Similar Threads
java is ASCII or Unicode ??
identifiers
Is ch\u0061 a='a' a valid declaration?
Byte order and file transference.
On Assertions