Records and fields
01CSV organizes records as rows with comma-separated fields.
Do not silently strip meaningful spaces.
Key idea: Records use CRLF in the documented common format; the final record may omit its ending CRLF.
Rules & examples
Records use CRLF in the documented common format; the final record may omit its ending CRLF.
- Records use CRLF in the documented common format; the final record may omit its ending CRLF.
- Each line should contain the same number of fields.
- Spaces are part of field data rather than automatically ignorable.
Examples are illustrative. Consult the linked RFC and its errata for implementation details.
Sources
New to this? Start hereA quick picture + helpful background
First, agree how to read the message.
An encoding tells a reader how to interpret bytes. A format tells it how values fit together. Correctly reading a value does not make that value trustworthy.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
The later update defines row, column, and cell URI fragments for text/csv. It does not replace the CSV field quoting rules.
Read the updated RFC section ↗