what encoding does taglib use when using setTitle,setAlbum etc?

berlinud berlinudberlinud at gmail.com
Wed Sep 8 10:14:37 CEST 2010


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.

On Tue, Sep 7, 2010 at 8:44 PM, Scott Wheeler <wheeler at kde.org> wrote:

> On Sep 7, 2010, at 1:45 PM, berlinud wrote:
>
> > I am wondering if I could change the encoding used when writing mp3
> > tags(by setTitle(),setAlbum(),etc).
> > so first of all I want to know what encoding taglib uses as default.
>
> It uses ISO-8859-1 by default.  You can set it to UTF8 with:
>
> TagLib::ID3v2::FrameFactory::instance()-
>  >setDefaultTextEncoding(TagLib::String::UTF8);
>
> Note, however, that even by default if you try to save a frame with
> characters that aren't a part of ISO-8859-1, TagLib will automatically
> convert the frame to UTF8.
>
> -Scott
>
> _______________________________________________
> 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/86ce9a5b/attachment.htm 


More information about the taglib-devel mailing list