RFC 4180 in practice vs the dialects in the wild
RFC 4180 is an informational memo from 2005, not a strict standard, but it codified the sane core: fields separated by commas, records by CRLF, fields containing commas, quotes, or line breaks wrapped in double quotes, and literal quotes escaped by doubling. The wild disagrees on almost everything else — semicolon and tab delimiters, bare LF line endings, optional trailing newlines, byte-order marks from Excel, and headerless files. A robust converter accepts the dialects on input (this one auto-detects delimiters and accepts both CRLF and LF) while emitting strictly conformant output.