mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-19 13:01:32 +01:00
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
Block a user