From 066b8458f4c617c49e23163e24b1f1e83084483d Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Sat, 3 Jul 2021 00:28:36 +0800 Subject: [PATCH] chore: use utf8 for decoding metadata value --- app/exiv2wrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/exiv2wrapper.cpp b/app/exiv2wrapper.cpp index 3401515..c0bc16d 100644 --- a/app/exiv2wrapper.cpp +++ b/app/exiv2wrapper.cpp @@ -34,7 +34,7 @@ void Exiv2Wrapper::cacheSection(Collection collection) QString label = QString::fromLocal8Bit(it->tagLabel().c_str()); std::ostringstream stream; stream << *it; - QString value = QString::fromLocal8Bit(stream.str().c_str()); + QString value = QString::fromUtf8(stream.str().c_str()); m_metadataValue.insert(key, value); m_metadataLabel.insert(key, label);