detect encoding of id3v2 tags of mp3 file

0

I am trying to detect encoding of tags. Using eyeD3 file.mp3 outputs information about file however my c++ program prints unreadable garbage as title for some mp3 file which i assume is due to encoding.

Is there a way how to find encoding of tag?

user3424358

Posted 2017-08-06T19:45:09.533

Reputation: 1

Answers

0

According to the standard (section 4.2.2):

Textual frames are marked with an encoding byte.

  • $00 – ISO-8859-1 (LATIN-1, Identical to ASCII for values smaller than 0x80).
  • $01 – UCS-2 (UTF-16 encoded Unicode with BOM), in ID3v2.2 and ID3v2.3.
  • $02 – UTF-16BE encoded Unicode without BOM, in ID3v2.4.
  • $03 – UTF-8 encoded Unicode, in ID3v2.4.

xenoid

Posted 2017-08-06T19:45:09.533

Reputation: 7 552