QUOTE(stigc @ Dec 30 2004, 03:02 PM)
Two short questions about the id3 tags.
I have implemented an id3v2.3-4 reader. This works fine on 2.3 and 2.4 tags, but is it capable of reading version 2.1 and 2.2? I do not have any mp3 files with a tag with these versions.
How do i see if a tag is encoding with UTF-8?
Hi stigc,
UTF-8 is only supported in ID3v2.4 (UCS-2 is used in 2.2 and 2.3, but they differ, 2.3 requires a byte order marker and 2.2 assumes big endian). Most text frames have an additional byte after the header which specifies the encoding:
0x00 is ISO-8859-1 (in other words ASCII, to be simplistic)
0x01 is UCS-2 in 2.2 an 2.3 (note differences), UTF-16 with BOM in 2.4
0x02 is UTF-16BE in 2.4 only
0x03 is UTF-8 in 2.4 only
Edit: ID3v2.2 was originally called ID3v2 or ID3v2.0, there's no ID3v2.1.
Hope this helps. Also, check their
website.