Visual RFC.
ALL RFCs / RFC 4180
Read the RFC ↗
RFC 4180 / MECHANISM GUIDE

Escape double quotes

04

A quote inside a quoted field is represented by two consecutive double quotes.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

DIAGRAM§ 2 ↗
RFC 4180 · § 2EXAMPLE
3 / 3
Escape double quotesA quote inside a quoted field is represented by two consecutive double quotes.Escape double quotes"He said ""Hi"""Each doubled pair → one quoteHe said "Hi"
03
Recover the value

The result is the literal text He said "Hi".

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
KEY POINT

Backslash is not the escape syntax defined by this RFC.

  • Backslash is not the escape syntax defined by this RFC.
  • The outer quotes delimit the field.
  • Doubled inner quotes decode to a single quote character.
DETAILS

Examples are illustrative. Consult the linked RFC and its errata for implementation details.

Read the RFC section ↗

Diagrams simplify the RFC. Read the linked sections for complete requirements.

Privacy
All chapters in this RFC
  1. Records and fields
  2. Optional header row
  3. Quoted fields
  4. Escape double quotes
  5. Media type and application limits
RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗