QTextCodec *codec = QTextCodec::codecForName("GBK");
QByteArray line = file->readLine();
QString str;
str = codec->toUnicode(line);
qt读中文乱码
最新推荐文章于 2024-06-12 16:39:39 发布
QTextCodec *codec = QTextCodec::codecForName("GBK");
QByteArray line = file->readLine();
QString str;
str = codec->toUnicode(line);