标签:unity name qfile community file 解决 etc txt codec
QFile file("E:\\community.txt");
QTextStream in(&file);
in.setCodec(QTextCodec::codecForName("UTF-8"));//让文件以UTF-8的方式译码。
if(!file.open(QIODevice::ReadOnly|QIODevice::Text)){strList.append("2");}
标签:unity name qfile community file 解决 etc txt codec
原文地址:https://www.cnblogs.com/hahaah/p/14924160.html