Commit 3bd4c06d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

UTF-8 is the new default for QTextStream.

parent c9c02090
Pipeline #49300 failed with stage
in 10 minutes and 33 seconds
......@@ -403,7 +403,9 @@ bool Part::writeToTextFile(const QString &data, const QString &filename) const
return false;
}
QTextStream stream(&file);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
stream.setCodec("UTF-8");
#endif
stream << data << Qt::endl;
return file.commit();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment