mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-22 16:46:45 -05:00
specify utf-8 when reading in files
This commit is contained in:
@@ -33,6 +33,7 @@ void KeyValueConfigBase::load() {
|
||||
}
|
||||
|
||||
QTextStream in(&file);
|
||||
in.setCodec("UTF-8");
|
||||
QList<QString> configLines;
|
||||
QRegularExpression re("^(?<key>.+)=(?<value>.+)$");
|
||||
while (!in.atEnd()) {
|
||||
|
||||
@@ -1248,6 +1248,7 @@ QString Project::readTextFile(QString path) {
|
||||
return QString();
|
||||
}
|
||||
QTextStream in(&file);
|
||||
in.setCodec("UTF-8");
|
||||
QString text = "";
|
||||
while (!in.atEnd()) {
|
||||
text += in.readLine() + "\n";
|
||||
|
||||
Reference in New Issue
Block a user