From 2b9547555de722e8fc004ea6262a8c977b4e2704 Mon Sep 17 00:00:00 2001 From: ShadowLight8 Date: Mon, 30 Oct 2023 21:24:35 -0400 Subject: [PATCH] Add true parameter to tag functions to preserve unicode characters --- src/mediadetails.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mediadetails.cpp b/src/mediadetails.cpp index e03057541..4374905dd 100644 --- a/src/mediadetails.cpp +++ b/src/mediadetails.cpp @@ -100,13 +100,13 @@ void MediaDetails::ParseMedia(const char* mediaFilename) { TagLib::Tag* tag = f.tag(); - title = tag->title().toCString(); - artist = tag->artist().toCString(); - album = tag->album().toCString(); + title = tag->title().toCString(true); + artist = tag->artist().toCString(true); + album = tag->album().toCString(true); year = tag->year(); - comment = tag->comment().toCString(); + comment = tag->comment().toCString(true); track = tag->track(); - genre = tag->genre().toCString(); + genre = tag->genre().toCString(true); if (f.audioProperties()) { TagLib::AudioProperties* properties = f.audioProperties();