
How CSV Quoting Works and Why Embedded Commas Break Things
See how a stray comma turns one column into two, what the four quoting states are, and why a backslash does not escape a quote in CSV the way it does in code.
Everything you need to level up your coding skills.

See how a stray comma turns one column into two, what the four quoting states are, and why a backslash does not escape a quote in CSV the way it does in code.

MySQL Workbench cannot import XLSX directly. Convert to CSV for the wizard or LOAD DATA, or use a Python script, and avoid the strict mode and date traps.

An unexpected token error at position 0 means the text is not JSON: usually an HTML error page, the word undefined or an unparsed object. How to tell which.

Read the not well-formed error in ElementTree, lxml and xmllint on a 28.6 MB file: line and column, what the position means and a method to find the cause.

Comma, semicolon, tab or pipe? Measure how often each appears in real text, see what a decimal comma does to a file, and choose a delimiter with a reason.

Load an Excel sheet into PostgreSQL with pandas and psycopg: read as text, copy into a staging table, then convert types in SQL and keep a batch record.

RFC 4180 is a four page memo, not a standard. Read its seven rules, the grammar quirks that surprise people, and how real files and readers drift from it.

A complete guide to everyday YAML syntax: indentation, scalars, quoting, collections, block strings, anchors, null and versions, tested with real parsers.

How to read a JSON parse error: what the position means in Python, Node, PHP and jq, twelve common causes, and a method that finds the bad byte fast.

A tested routine for XML that will not parse: check the bytes, then the encoding, then the characters, then the structure, with an error message dictionary.

A complete method for loading Excel into PostgreSQL, MySQL, SQLite or SQL Server: read as text, stage, check counts, convert types and reload safely.

A CSV file promises rows and delimiters and little else. See what six readers did with one awkward file, and how to read CSV without guessing.
We send one email when a new article is published. No spam.