Currently I am facing problem with UNICODE character on my Rails 3 project.
In Khmer character number(unicode character) letter “៤” is equal to 4.
I want to compare ៤ >= 3 but can’t.
Can anyone suggest me some idea about how to compare that? May be there are some method could convert ៤ to 4 so that I can do compare.
Note
I can type ៤ by switching keyboard from Eng to Khm and type 4 as normal.
Thanks
Do the numbers behave in the same way like arabic numerals? Then, you can use this little helper method to convert a Khmer-number string to an integer: