I was under the impression that java supports unicode characters. I made this test and sadly found that it fails. The question is why? Is it a bug or somewhere documented?
// MATHEMATICAL SANS-SERIF "
I was under the impression that java supports unicode characters. I made this test and sadly found that it fails. The question is why? Is it a bug or somewhere documented?
// MATHEMATICAL SANS-SERIF "
It's not bug, the behaviour is documented. According to the documentation for parseInt(String s, int radix) (emphasis mine)
If you try :
You'll see that both return -1.
Mind you,
Integer.parseInt(unicodeNum6);
will just callInteger.parseInt(unicodeNum6, 10);