#29 per-mimetype character encoding

open
Jin
5
2008-01-02
2008-01-02
Anonymous
No

id3 tags are speciefied to be latin1 or utf16 (http://en.wikipedia.org/wiki/Id3), while flac and ogg tags are specified to be utf8 (http://en.wikipedia.org/wiki/Vorbis_comment). This can currently not be handled cleanly. One possible solution for this would be to specify metadata-encoding per mimetype instead of globally.

Discussion

  • Jin
    Jin
    2008-01-02

    Logged In: YES
    user_id=1205152
    Originator: NO

    Taglib should handle that. There already was a change request regarding this and I added it in svn - taglib returns UTF8 tags for everything, doing the necessary conversions internally, so we do not touch that data anymore.

    However, a per metadata-handler setting may make sense, since various libraries may have different behaviour. This would probably go along with the metadata-handler selection request.

     
  • Logged In: NO

    It seems that libextractor also is supposed return UTF8, so the m2i() call in extractor_handler.cc should be a i2i() call. Changing that solves my immediate problem (I use a recent svn version of libextractor for ogg and flac)

     
  • Jin
    Jin
    2008-01-02

    Logged In: YES
    user_id=1205152
    Originator: NO

    thanks for the hint, I guess I missed it.

    Committed revision 1611.