chore: use utf8 for decoding metadata value

This commit is contained in:
Gary Wang 2021-07-03 00:28:36 +08:00
parent c9e3274188
commit 066b8458f4

View File

@ -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);