diff --git a/doric-Qt/doric/utils/DoricUtils.h b/doric-Qt/doric/utils/DoricUtils.h index 00cb69e3..61e57773 100644 --- a/doric-Qt/doric/utils/DoricUtils.h +++ b/doric-Qt/doric/utils/DoricUtils.h @@ -13,7 +13,7 @@ public: QFile *file = new QFile(resource.fileName()); file->open(QFile::ReadOnly | QFile::Text); QTextStream in(file); - in.setAutoDetectUnicode(true); + in.setEncoding(QStringConverter::Encoding::Utf8); QString content = in.readAll(); file->close(); delete file;