20241009 qt乱码问题大合集

Qt QDomDocument xml 中文乱码解决方法
https://blog.csdn.net/weixin_41882459/article/details/108857098
写入
// 保存 XML 文件
QFile wfile(fileName);
// 只写模式打开文件
if (wfile.open(QFile::ReadWrite | QFile::Text))
{
QTextStream out(&wfile);
doc.save(out, QDomNode::EncodingFromDocument);
wfile.close();
}
有效
读取
1 | qt 读取xml文件中文问题 |
没试过
Comments
Comment plugin failed to load
Loading comment plugin