aboutsummaryrefslogtreecommitdiff
path: root/qdeduper
diff options
context:
space:
mode:
Diffstat (limited to 'qdeduper')
-rw-r--r--qdeduper/mingui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/qdeduper/mingui.cpp b/qdeduper/mingui.cpp
index dcda53a..670b128 100644
--- a/qdeduper/mingui.cpp
+++ b/qdeduper/mingui.cpp
@@ -656,6 +656,9 @@ void DeduperMainWindow::save_list()
QFile file(fn);
if (!file.open(QIODevice::WriteOnly)) return;
QTextStream fst(&file);
+#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
+ fst.setCodec("UTF-8");
+#endif
for (const fs::path &x : this->marked)
{
#if PATH_VALSIZE == 2
@@ -675,6 +678,9 @@ void DeduperMainWindow::load_list()
if (!file.open(QIODevice::ReadOnly)) return;
this->marked.clear();
QTextStream in(&file);
+#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
+ in.setCodec("UTF-8");
+#endif
while(!in.atEnd())
{
QString && s = in.readLine();