For one of my opensource projects, i need to compute the decimal equivalent of a given unicode character.
For example if tamil character L'அ'
is given, the output should be 2949 .
I am using c++ in Qt environment. I googled and could not find a solution for this. Please help if you know a solution for this.
Use the unicode() method of the
QChar
object (which you can get e.g. with theat
method of aQString
, if aQString
is what you have to start with).that's it