character encoding - get char value in java -


how can utf8 code of char in java ? have char 'a' , want value 97 have char 'é' , want value 233

here table more values

i tried character.getnumericvalue(a) gives me 10 , not 97, idea why?

this seems basic appreciated!

char numeric type containing unicode value (utf-16, exact - need two chars represent characters outside bmp) of character. can can int.

character.getnumericvalue() tries interpret character digit.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -