bug encoding multibyte?

Lukáš Lalinský lalinsky at gmail.com
Sun Feb 4 23:27:05 CET 2007


On Ne, 2007-02-04 at 23:16 +0100, Lukáš Lalinský wrote:
> On Pi, 2007-02-02 at 00:12 +0000, Ray wrote:
> > hi,
> > 
> > i've been having problem storing multibyte strings in
> > mp3 tags -- i verify the input going in looks valid,
> > but when i read the tag out of the mp3 and examine the
> > data, it looks like garbage.
> > 
> > can someone tell me if this is a mistake on my part?
> 
> It works fine here. My best guess would be that test.mp3 already
> contains a TPE1 frame, but with encoding set to ISO-8859-1. Function
> setArtist will reuse the existing frame and just set the text, without
> changing the encoding to the default one (UTF-8).

Whops, my bad. The default encoding seem to be ISO-8859-1 (why?). I
think this should help:

TagLib::ID3v2::FrameFactory::instance()->setDefaultTextEncoding(TagLib::String::UTF8);

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mail.kde.org/pipermail/taglib-devel/attachments/20070204/a26ae76a/attachment.pgp 


More information about the taglib-devel mailing list