Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: New line encoding in multi-line metadata (Read 1683 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

New line encoding in multi-line metadata

I noticed that foobar encodes new lines in multi-line metadata fields as \r\n (carriage return and new line). Every OS has its own standards for plain text files (Windows: \r\n, Linux: \n, Mac OS: \r). The ID3v2.3 specs say \n should be used, while the Vorbis Comment specs say nothing about it. In ID3v2's case at least, it seems that foobar doesn't adhere to the specs.

I think foobar should always encode new lines the same way (and convert them for display if necessary), and since ID3v2 requires \n, I suggest \n (but I'm biased). Note that foobar displays \n just fine.