From 0da880bb853a82e2968539074cb4f3a51464ea8b Mon Sep 17 00:00:00 2001 From: Bionus Date: Wed, 13 Jul 2022 20:30:00 +0200 Subject: [PATCH] Fix exiftool on utf-8 filenames on Windows (fix #2725) --- src/lib/src/exiftool.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/src/exiftool.cpp b/src/lib/src/exiftool.cpp index feb49ad52..44c28dd78 100644 --- a/src/lib/src/exiftool.cpp +++ b/src/lib/src/exiftool.cpp @@ -52,6 +52,7 @@ bool Exiftool::start(int msecs) bool Exiftool::setMetadata(const QString &file, const QMap &metadata, int msecs) { QStringList commands; + commands.append({ "-charset", "filename=utf8" }); commands.append({ "-sep", ";" }); for (auto it = metadata.constBegin(); it != metadata.constEnd(); ++it) { commands.append("-" + it.key() + "=" + it.value());