• Post Reply Bookmark Topic Watch Topic
  • New Topic

Get Unicode of a character  RSS feed

 
Natesan Prabhakaran
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to get a UniCode of a character...?
please.. Explain it with Example...
 
Paul Clapham
Sheriff
Posts: 22507
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The char data type is in fact a 16 bit unsigned integer. You can just cast it to an int as Paul shows, the type int is more convenient if you want to work with the numeric value. If you want to see the number in hexadecimal form (which is how Unicode values usually are represented) then you can just format the number:

[ August 22, 2006: Message edited by: Jesper Young ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!