Commit 00fc52d0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

UTF-8 is the new default for QTextStream.

parent ea4cea61
Pipeline #49301 failed with stage
in 9 minutes and 43 seconds
......@@ -85,7 +85,9 @@ void EditorPage::saveAsFilename(const QString &filename)
QFile file(filename);
if (file.open(QIODevice::WriteOnly | QIODevice::Text)) {
QTextStream out(&file);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
out.setCodec("UTF-8");
#endif
out << mEditor->toPlainText();
file.close();
} else {
......
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