ID3v2 problem when using non standard character WITH solutio

Discuss the current and future development of Max.
Post Reply
pyr
Posts: 1
Joined: Tue Jun 06, 2006 11:09 am

ID3v2 problem when using non standard character WITH solutio

Post by pyr » Tue Jun 06, 2006 11:27 am

Hello,

I was trying to set the following album name for MP3 files :
<L'Œuvre pour clavier>
The character between ' and u being unicode character #0152 (UTF8: C592)

But i would always get the following album name in the end
<L'Ruvre pour clavier>
which is not really what I expected.

I found out that the TagLib library was doing a final conversion to latin encoding when writing the ID3v2 frames whereas it should have used UTF8 (isn't it ID3v2 compulsory encoding ?).

Adding the following line in MPEGEncoderTask.mm writeTags method right after the variable declaration did solve the problem :

Code: Select all

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

btw, great work !
(max is the ripper i've been waiting for a long time)

User avatar
sbooth
Site Admin
Posts: 2445
Joined: Fri Dec 23, 2005 7:45 am
Location: USA
Contact:

Post by sbooth » Thu Jun 08, 2006 3:22 pm

This is a huge help- I can't believe I forgot to do this. Thanks!

T.D.S.
Posts: 11
Joined: Mon May 15, 2006 5:00 am

Post by T.D.S. » Sat Jun 10, 2006 7:59 pm

Would this help in maintaining Japanese characters? I use Max to convert from ALAC to MP3 and it changed my Japanese characters into what I assume, what it thought was the Latin equivalent.

User avatar
sbooth
Site Admin
Posts: 2445
Joined: Fri Dec 23, 2005 7:45 am
Location: USA
Contact:

Post by sbooth » Sun Jun 11, 2006 2:54 am

T.D.S. wrote:Would this help in maintaining Japanese characters? I use Max to convert from ALAC to MP3 and it changed my Japanese characters into what I assume, what it thought was the Latin equivalent.
Yes, this should help for all non-Latin1 characters.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest