I tried this code in
BeanShell and it worked fine:
It printed:
{٨=8, ٩=9, ٢=2, ٣=3, ٠=0, ١=1, ٦=6, ٧=7, ٤=4, ٥=5}
Now, in order to get the correspoding values in European numbers:
You simply do digits.get('٣') and
you should get 3 as the result.
PS.
I used the arabic-indic unicode numbers (U+0660-U+0669).
The Eastern Arabic-Indic unicode numbers correspond with U+06F0-U+06F9
[ December 13, 2006: Message edited by: Edwin Dalorzo ]