• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unicode

 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I see the unicode number for a character?
 
Junilu Lacar
Bartender
Posts: 7598
53
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That worked great.
Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic