LMZ
3rd July 2007, 11:42
Hi guys! I have a problem with the text encoding.
I get a string with regexp:
QRegExp rxTitle("...");
. . . . . . . . . . . . . .
qstrTitle = rxTitle.cap(2);
This text contains some local characters (ru), and it's not displayed normally.
I tried to use QString::fromLocal8Bit:
. . . . . . . . . . . . . . . .
qstrTitle = QString::fromLocal8Bit( qstrTitle.toAscii() );
No result.. I tried to use QString::toUtf8().. the same result..
How can I display normally that text?
I get a string with regexp:
QRegExp rxTitle("...");
. . . . . . . . . . . . . .
qstrTitle = rxTitle.cap(2);
This text contains some local characters (ru), and it's not displayed normally.
I tried to use QString::fromLocal8Bit:
. . . . . . . . . . . . . . . .
qstrTitle = QString::fromLocal8Bit( qstrTitle.toAscii() );
No result.. I tried to use QString::toUtf8().. the same result..
How can I display normally that text?