I want to get the Latin1 code for multiply sign ×
, but when I check the value inside the QChar
it has -41'×'
.
My code:
QString data = "×";
QChar m = data.at(0);
unsigned short ascii = (unsigned short)m.toLatin1();
When I debug, in the second line I see the QChar
value is -41'×'
.
I changed the code:
unsigned int ascii = c.unicode();
But I get the value 215 rather and I expect 158.