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.

RFC 4180 · § 2EXAMPLE
3 / 3
03
Recover the value

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

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"

Key idea: Backslash is not the escape syntax defined by this RFC.

Terms

Look up a term in the glossary ↗

Rules & examples
  • 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.

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

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

First, agree how to read the message.

An encoding tells a reader how to interpret bytes. A format tells it how values fit together. Correctly reading a value does not make that value trustworthy.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

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

All chapters in RFC 4180

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

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

RFC status and corrections ↗