what encoding does taglib use when using setTitle,setAlbum etc?
berlinud
berlinudberlinud at gmail.com
Wed Sep 8 14:49:32 CEST 2010
Thanks a lot Scott!
It works!
You are so awesome!!!
I am curious about how you got these knowledge?
Is there any document about taglib?
I searched but I didn't find any.
2010/9/8 Lukáš Lalinský <lalinsky at gmail.com>
> On Wed, Sep 8, 2010 at 10:14 AM, berlinud <berlinudberlinud at gmail.com>
> wrote:
> >
> > hi Scott
> > I'm sorry but I didn't find
> > TagLib::ID3v2::FrameFactory::instance()-
> > >setDefaultTextEncoding(TagLib::String::UTF8);
> > there is no ID3v2 domain in TagLib,which source file is it in?
> > What's more,I tried to write Chinese tags by
> > TagLib::FileRef->tag()->setAlbum(QString::toUtf8.data());
> >
> > but it still write in latin1,it didn't convert tag to utf8 by default.
>
> The default TagLib::String constructor for char* assumes Latin1, you
> need to tell it you are passing UTF-8 data:
>
> file->tag()->setAlbum(TagLib::String(QString::toUtf8.data(),
> TagLib::String::UTF8));
>
> Lukas
> _______________________________________________
> taglib-devel mailing list
> taglib-devel at kde.org
> https://mail.kde.org/mailman/listinfo/taglib-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20100908/ae4187cb/attachment.htm
More information about the taglib-devel
mailing list