This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 4446
    
    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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unicode
 
Similar Threads
Byte order and file transference.
java is ASCII or Unicode ??
identifiers
Is ch\u0061 a='a' a valid declaration?
On Assertions