You can use Character#getType
to check the character's general category:
System.out.println(Character.DECIMAL_DIGIT_NUMBER == Character.getType('१'));
This will print true
, which is an "evidence" that '१' is a digit number.
Now let's examine the unicode value of the '१' character:
System.out.println(Integer.toHexString('१'));
// 967
This number is on the range of Devanagari digits - which is: \u0966
through \u096F
.
Also try:
Character.UnicodeBlock block = Character.UnicodeBlock.of('१');
System.out.println(block.toString());
// DEVANAGARI
Devanagari is:
is an abugida (alphasyllabary) alphabet of India and Nepal
"१२३" is a "123" (Basic Latin unicode).
Reading: