[prev in list] [next in list] [prev in thread] [next in thread] 

List:       taglib-devel
Subject:    Re: bug encoding multibyte?
From:       Lukáš_Lalinský <lalinsky () gmail ! com>
Date:       2007-02-04 22:27:05
Message-ID: 1170628025.5780.39.camel () nemo
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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);


["signature.asc" (application/pgp-signature)]

_______________________________________________
taglib-devel mailing list
taglib-devel@kde.org
https://mail.kde.org/mailman/listinfo/taglib-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic