Commit fff02d45 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

UTF-8 is the new default for QTextStream.

parent 15dca4bc
Pipeline #49303 failed with stage
in 4 minutes and 38 seconds
......@@ -29,7 +29,9 @@ Grantlee::Template QtResourceTemplateLoader::loadByName(const QString &fileName,
}
QTextStream fstream(&file);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
fstream.setCodec("UTF-8");
#endif
const auto fileContent = fstream.readAll();
return engine->newTemplate(fileContent, fileName);
......
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