Menu

Problem with Taglib and special characters

Help
ohusby
2007-01-03
2013-05-30
  • ohusby

    ohusby - 2007-01-03

    Hi.

    When adding music to mediatomb v. 0.9 I get the following messages:
    TagLib: MPEG::Header::parse() -- Invalid sample rate.
    TagLib: MPEG::Header::parse() -- Invalid sample rate.
    2007-00-03 22:40:38   ERROR: iconv: Invalid or incomplete multibyte or wide character
    2007-00-03 22:40:38   ERROR: ABC Caf\uffff/Red and Black could not be converted to new encoding: invalid character sequence!

    All songs have a sample rate at 256kbit, and this has not been a problem with the 0.8 release.

    Filenames containing an é has nether been a problem. I have many norvegian songs containing the norvegian letters æøå, and the new version also seems to have a problem with them.

    Do you see a solution to this?

    Best regards Øivind.

     
    • Jin

      Jin - 2007-01-04

      Hi,

      I have seen the samplerate problem, I am not yet sure what is causing this - but it seems to be a taglib related problem. If you do not like taglib you can always compile with id3lib - it's just a switch to configure.

      Regarding the filenames: you have to set correct filesystem and metadata charset in your config.xml
      We are trying to autodetect default system settings, but I noticed some problems with it. Anyway, just set the <filesystem-charset> and <metadata-charset> correctly in the <import> section of your config.xml and reimport the media that has norvegian letters, it then should get imported correctly.

      The "?" thing is coming in when iconv fails to convert some characters to UTF-8, because it assumes a different import encoding. The 0.8 version did not handle this case at all...

      Let me know if it works :)

      Greetings,
      Jin

       
    • ohusby

      ohusby - 2007-01-06

      It seems like you have some problem with the defaulting of the character sets. The filename-charset was already set to ISO-8859-1, but the metadata-charset was not defined explicitly. According to the README file the default should be as the filename-charset (ISO-8859-1), but when I defined it explicitly to that value the iconv-error disappeared. I don't think it should be much converting between ISO-8859-1 and UTF-8.

      When I build the version with id3lib, the taglib-errors of course disappereard, and it looks like the files are loaded ok.

      Thank you for the assistance.

      Øivind

       
    • Jin

      Jin - 2007-01-07

      Hi,

      sorry, the README is somewhat outdated, we need to add new documentation for the upcoming 0.9 release

      regarding charsets: we now try to autodetect them from the system locale, however that does not always work. I still need to investigate what is going wrong there. So for now you will have to set both in the config manually...

      I wonder why taglib choked on those mp3 files...

      Greetings,
      Jin

       

Log in to post a comment.