Writing BOM with id3v2.4 UTF-8


#1

Hello,

I'm currently running into a problem with a java mp3 tag library that doesn't seem to be stripping the BOM from either v2.3 or v2.4 tags. However, when researching the problem, I noticed the following in the id3v2.4 spec: Frames that allow different types of text encoding contains a text

   encoding description byte. Possible encodings:

     $00   ISO-8859-1 [ISO-8859-1]. Terminated with $00.
     $01   UTF-16 [UTF-16] encoded Unicode [UNICODE] with BOM. All
           strings in the same frame SHALL have the same byteorder.
           Terminated with $00 00.
     $02   UTF-16BE [UTF-16] encoded Unicode [UNICODE] without BOM.
           Terminated with $00 00.
     $03   UTF-8 [UTF-8] encoded Unicode [UNICODE]. Terminated with $00.The way I read this is that BOM should only be used for UTF-16(LE) and that UTF-8, which is what Mp3tag uses for v2.4, should not have a BOM at all.

Am I misunderstanding? Would it be possible to optionally disable BOM when writing tags (at least for v2.4) like it can be disabled for exporting tags?

Thank you,
Greg


#2

Mp3tag writes id3v2.4 UTF-8 without BOM


#3

Okay, thank you. I'm sorry for misinterpreting the situation. Since I'm seeing a BOM, it must then be a problem with this tag library I'm using. Thank you for helping me clear that up.