This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 4419
    
    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
identifiers
On Assertions
Is ch\u0061 a='a' a valid declaration?
Byte order and file transference.
java is ASCII or Unicode ??