We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd23fbc commit 4280258Copy full SHA for 4280258
src/setting.cpp
@@ -6,7 +6,7 @@
6
#include <QStandardPaths>
7
#include <QMessageBox>
8
#include <QPixmap>
9
-
+#include <QTextCodec>
10
#include "setting.h"
11
#include "config.h"
12
#include "defines.h"
@@ -193,6 +193,7 @@ void Setting::loadSettings()
193
194
// read file
195
QTextStream txt(&file);
196
+ txt.setCodec(QTextCodec::codecForName("UTF-8"));
197
QString s;
198
int pos, pos1, pos2;
199
while (!txt.atEnd ())
@@ -324,7 +325,7 @@ void Setting::saveSettings()
324
325
if (file.open(QIODevice::WriteOnly))
326
{
327
QTextStream txtfile(&file);
328
+ txtfile.setCodec(QTextCodec::codecForName("UTF-8"));
329
// write list to file: KEY [TXT]
330
QMap<QString, QString>::const_iterator i = params.constBegin();
331
while (i != params.constEnd()) {
0 commit comments