I need to open file with C++/Qt. I opened it, but if there is cyrillic symbols in the file path i get:
/home/shk/?????????/test开发者_C百科.txt
How can i fix it?
Thank you.
QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8"))
tr(line.toAscii()) ( toUtf8 and toLatin1);
and
QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8"))
tr(line.toAscii()) ( toUtf8 and toLatin1);
this maybe helpful
精彩评论