Qt/TagLib special chatacter

renaud renaud.guezennec at wanadoo.fr
Mon Aug 15 01:24:56 UTC 2016


Hi,

In my own application, I used :

filename->toLocal8Bit()

such as :     myTaggger = new TagLib::FileRef(filename->toLocal8Bit());

Hope, it helps.


Renaud G.

On 15/08/2016 01:53, Marco Atzori wrote:
> I have a this filename: "♥♫ Feels So Good (sonique Best Remix Extended 
> Version) Music Song Video ❦ love romantic "
>
> Usually, to extract the file information I use this code
>
> |QStringmediafile 
> =playlist->currentMedia().canonicalUrl().toString();TagLib::FileReff(QFile::encodeName(mediafile).constData()); 
> |
>
> /This code works perfectly/, only does not work when the file name 
> contains special characters as above. I tried
>
> |QTextCodec*codec =QTextCodec::codecForName("UTF-8"); |
> and
>
> |mediafile.toUtf8()|
> with no results. Any solution? 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20160815/0ec6f21e/attachment-0001.html>


More information about the taglib-devel mailing list