Qt/TagLib special chatacter
    Ossigeno 
    ossigeno at email.it
       
    Tue Aug 16 21:00:45 UTC 2016
    
    
  
Tried this
 
 
QByteArraymyTaggger=newTagLib::FileRef(tmp.toLocal8Bit());
Qt Creator returns this error:
error: conversion from 'QByteArray' to 'TagLib::File*' is ambiguous
         QByteArray myTaggger = new TagLib::FileRef(tmp.toLocal8Bit());
                                                                     ^
--------- Original Message --------
 Da: taglib-devel at kde.org
 To: "taglib-devel at kde.org" <taglib-devel at kde.org>
 Oggetto: Re: Qt/TagLib special chatacter
 Data: 15/08/16 03:25
 
 
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
 
 
    QString mediafile =
playlist->currentMedia().canonicalUrl().toString();TagLib::FileRef
f(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?
 
 
 --
 ZE-Light e ZE-Pro: servizi zimbra per caselle con dominio email.it, per tutti i dettagli 
Clicca qui http://posta.email.it/caselle-di-posta-z-email-it/?utm_campaign=email_Zimbra_102014=main_footer/f
 
 Sponsor:
 Soluzioni di email hosting per tutte le esigenze: dalle caselle gratuite a quelle professionali su piattaforma Zimbra, da quelle su proprio dominio a quelle certificate PEC. Confronta le soluzioni
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=13325&d=16-8
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20160816/91040186/attachment.html>
    
    
More information about the taglib-devel
mailing list