Never override UTF-8 strings from TagLib.
This commit is contained in:
parent
f33604580c
commit
2e9dc6c570
|
@ -305,7 +305,7 @@ void Song::Init(const QString& title, const QString& artist, const QString& albu
|
|||
}
|
||||
|
||||
QString Song::Decode(const TagLib::String& tag, const QTextCodec* codec) {
|
||||
if (codec) {
|
||||
if (codec && tag.isLatin1()) { // Never override UTF-8.
|
||||
const std::string fixed = QString::fromUtf8(tag.toCString(true)).toStdString();
|
||||
return codec->toUnicode(fixed.c_str()).trimmed();
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue