spinax
9th May 2012, 18:03
Hi i got a little problem with the TagLib library. Now i use to translate strings between QString and TagLib::String this:
#define TStringToQString(s) QString::fromUtf8(s.toCString(true))
#define Qt4QStringToTString(s) TagLib::String(s.toUtf8().data(), TagLib::String::UTF8)
but when i try read file with polish alphabetic character in the name i got this:
QString(correctly) :
D:\ThisIsThePlaceÅŚÓ.mp3
after translate to TagLib::String
TagLib: Could not open file D:\ThisIsThePlaceAZÓ.mp3
Maybe someone have idea how to fix this?
#define TStringToQString(s) QString::fromUtf8(s.toCString(true))
#define Qt4QStringToTString(s) TagLib::String(s.toUtf8().data(), TagLib::String::UTF8)
but when i try read file with polish alphabetic character in the name i got this:
QString(correctly) :
D:\ThisIsThePlaceÅŚÓ.mp3
after translate to TagLib::String
TagLib: Could not open file D:\ThisIsThePlaceAZÓ.mp3
Maybe someone have idea how to fix this?