File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 5288
    
  10

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!
 
 
subject: Unicode