Visual RFC.
ALL RFCs / RFC 2047
Read the RFC ↗
RFC 2047 / EMAIL ENCODED WORDS

Display text without changing header structure

05

Decode recognized words for display after parsing the structured header. Whitespace joining and error recovery must preserve the surrounding message.

RFC 2047 · § 6.2EXAMPLE
5 / 5
Display text without changing header structureFive display cases preserve parsed structure: an encoded comma remains within one display name and mailbox; adjacent encoded words ignore only their separating white space, with an explicitly encoded space producing café picnic; malformed Q data leaves the message available; RFC2231 language metadata keeps charset, language and Q encoding separate; RFC6532 direct UTF-8 generation is a separate extension with syntactic-validity and transport constraints.Display text after parsing header structureSeparate RFC6532 UTF-8 header extensionGeneration: SHOULD NOT use encoded wordsConversion of incorporated material: MAYConversion: MUST NOT generate invalid fieldsDirect UTF-8: Subject: caféTransport authorization is still required
05
Distinguish direct UTF-8 headers from encoded words.

Under RFC6532’s separate extension, generation SHOULD NOT use encoded words. Conversion MAY be done when incorporating another message, but processors MUST NOT generate syntactically invalid fields. This is not automatic permission for every transport.

Source for this drawing: RFC 2047 · Read RFC section 6.2 ↗

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

A message needs an address.

Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.

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.

What changed
RFC2047 §2RFC2231 §5

Adds optional *language after charset; the encoding component remains (verified erratum478). RFC2184 is the earlier updater obsoleted by 2231.

Read the updated RFC section ↗
KEY POINT

Decoded display text must stay separate from parsed structure.

  • Decoded display text must stay separate from parsed structure.
  • Linear white space between adjacent encoded words is ignored for display. To display a space between them, encode it in one word. The ignored white space is not a license to remove spaces next to ordinary text.
  • A reader need not display incorrectly formed words but MUST NOT prevent message display or handling because of them. Unsupported encodings or charsets have the fallback options in §6.2; a successful display does not authenticate a sender.
DETAILS

RFC2231 §5 adds optional *language after charset; verified RFC 2231 erratum 478 retains the ?encoding? field. RFC2184 is the historical updater later obsoleted by 2231; neither obsoletes2047. RFC6532 §3.6 separately recommends against encoded words when generating its direct UTF-8 headers, permits conversion, and requires converted fields remain syntactically valid. Only printable/white-space text should be encoded, and readers should avoid unwanted terminal side effects from decoded data (§5). Direct UTF-8 transport needs an authorized environment (§3.7); do not decode and blindly reparse a header. Historical charset recommendations are not a general modern-generation mandate.

Read the RFC section ↗

All chapters in RFC 2047

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 ↗