Hi guys! I have a problem with the text encoding.
I get a string with regexp:
. . . . . . . . . . . . . .
qstrTitle = rxTitle.cap(2);
QRegExp rxTitle("...");
. . . . . . . . . . . . . .
qstrTitle = rxTitle.cap(2);
To copy to clipboard, switch view to plain text mode
This text contains some local characters (ru), and it's not displayed normally.
I tried to use QString::fromLocal8Bit:
. . . . . . . . . . . . . . . .
qstrTitle = QString::fromLocal8Bit( qstrTitle.
toAscii() );
. . . . . . . . . . . . . . . .
qstrTitle = QString::fromLocal8Bit( qstrTitle.toAscii() );
To copy to clipboard, switch view to plain text mode
No result.. I tried to use QString::toUtf8().. the same result..
How can I display normally that text?
Bookmarks