AW: [ID3 Dev] 0-termination in text frames
Paul Taylor
paul_t100 at fastmail.fm
Sat Mar 17 09:29:42 PDT 2007
I think it is unclear and unnecessary unless you are writing multiple
strings in a v2.4 frame, so i never write them. The disadvantage of
writing them is that players/taggers that dont realise that this null
terminater should not be displayed display it as an undisplayable
character, and also your additional not needed bytes.
Mathias Kunter wrote:
> Hello,
>
> well, I think it's clear. Version 2.2 and 2.3 specs say that data after a 0x00 byte (or 0x00 0x00 when using UTF16) in text frames should be ignored and not displayed. Version 2.4 says a 0 terminator separates substrings because every text frame allows multiple strings in 2.4. Well, I don't know if this is a common use-case anyway.
>
> So, if you write a 0 terminator at the end of the string, you definitely are on the safe side. A good ID3 parser should consider both the frame length and a possible existing earlier string terminator anyway when reading the tags.
>
> Regards,
> Mathias
>
>
> ----- Ursprüngliche Mail ----
> Von: Florian Heidenreich <support at mp3tag.de>
> An: ID3v2 mailing list <id3v2 at id3.org>
> Gesendet: Samstag, den 17. März 2007, 13:20:36 Uhr
> Betreff: [ID3 Dev] 0-termination in text frames
>
> Hi!
>
> I have one question regarding 0-termination in text frames because I
> have the impression that the spec is not very clear on that.
>
> Should one write a terminating 0 (according to the text encoding) on
> every text frame or not?
>
> Kind regards,
> Florian
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: id3v2-unsubscribe at id3.org
> For additional commands, e-mail: id3v2-help at id3.org
>
>
>
>
>
>
>
> ___________________________________________________________
> Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: id3v2-unsubscribe at id3.org
> For additional commands, e-mail: id3v2-help at id3.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: id3v2-unsubscribe at id3.org
For additional commands, e-mail: id3v2-help at id3.org
More information about the ID3v2
mailing list