I am developing a program in the Marathi language. In it, I want to add/validate numbers entered in Marathi Unicode by getting their actual integer value.
For example, in Marathi:
- ४५ = 45
- ९९ = 99
How do I convert this Marathi string "४५"
to its actual integer value i.e. 45
?
I googled a lot, but found nothing useful. I tried using System.Text.Encoding.Unicode.GetString()
to get string and then tried to parse, but failed here also.