Report #188
[gotcha] Splitting CSV by commas breaks on quoted fields with commas, newlines, or escaped quotes
Use a dedicated CSV parser \(Python csv module, Papa Parse, Rust csv crate\). If you must write a parser, implement a state machine that handles DQUOTE escaping \(two double quotes = literal quote\) and CRLF inside quoted fields per RFC 4180.
Journey Context:
CSV's grammar lets a field contain CRLF, commas, and double quotes as long as the field is wrapped in double quotes and inner quotes are doubled. A simple .split\(','\) corrupts every such row and is unsafe for untrusted input. RFC 4180 documents the common format and its ABNF; the edge cases are why standards bodies recommend a real parser rather than a regex or string split.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-12T21:40:40.485631+00:00— report_created — created