How can I get the UTF8 code of a char in Java ? I have the char \'a\' and I want the value 97 I have the char \'é\' and I want the value 233
here is a table for more
My method to do it is something like this:
char c = 'c'; int i = Character.codePointAt(String.valueOf(c), 0); // testing System.out.println(String.format("%c -> %d", c, i)); // c -> 99