You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may or may not be a bug. I'd ask first on a mailing list or a forum,
but I can't find one :/
I have a file which has it's tags stored as UTF16 (encoding=1, at least
that's what mutagen tells me). I open the file as follows:
meta = File( localpath )
title = meta.get( 'TIT2' ).text[0]
This will return a python unicode object. Which (AFAIK) is stored
internally as UCS2 or UCS4 (depending on compile options). So if I want the
data in UTF8, all I should need to do is:
title.encode("utf8")
This works without throwing an exception, but the string I get is not at
all what is stored in the ID3 tag. Instead I get a result with plenty of
Chinese characters and whatnot.
Any ideas what that might be?
You need to change the encoding attribute on the frame, not just re-encode the text
to a different string format. I'm not really sure what you did. You should ask on the
QL development list. Probably the frame is not actually UCS-2, and is UTF-8 with an
invalid encoding marker in the first place (and then, probably because you tagged in
Mutagen and then decided to go off and use EasyTag or something after that).
Originally reported by: Christoph Reiter (Bitbucket: lazka, GitHub: lazka)
From exh...@gmail.com on September 26, 2009 17:01:08
Original issue: http://code.google.com/p/mutagen/issues/detail?id=28
The text was updated successfully, but these errors were encountered: