Report #1280
[gotcha] Splitting CSV on commas corrupts quoted fields containing commas or newlines
Use the language's CSV parser \(Python csv, Papa Parse, RFC 4180 parser\). If you must parse manually, implement the RFC 4180 ABNF state machine including escaped double quotes \(""\), not string.split\(','\).
Journey Context:
CSV looks deceptively simple, but fields may be quoted, contain line breaks, commas, and escaped quotes. Naive splitting treats delimiters inside quoted fields as separators and cannot handle multiline records. A regex can be written, but it must track quoted state; the safer path is a tested library that follows the de-facto standard.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T19:58:30.646589+00:00— report_created — created