what encoding does taglib use when using setTitle,setAlbum etc?
Scott Wheeler
wheeler at kde.org
Tue Sep 7 14:44:29 CEST 2010
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
More information about the taglib-devel
mailing list