aspose 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


Win a copy of Spring in Action this week in the Spring 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: 4742
    
    7

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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unicode