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

How do the pieces tell the reader where they belong?

02

Some bits act like labels. The remaining bits carry the character number.

RFC 3629 · § 3EXAMPLE
1 / 4 · Start with one character number

We are packing a number, not cutting up a picture.

Text item€
Its character number8364

The shared list calls this a code point.

What happens if you change this?

Make one change, then watch again. Restart restores the original example.

3 / 3
03
Obtain E2 82 AC

The resulting bytes decode to the original scalar value.

How do the pieces tell the reader where they belong?Some bits act like labels. The remaining bits carry the character number.How do the pieces tell the reader where they belong?U+20AC = 0010 000010 1011001110 001010 00001010 101100E2 82 AC

Key idea: The labels describe the pieces; the remaining bits carry the character number.

Terms
UTF-8
A rule for turning Unicode character numbers into ordered bytes, and back.
Code point
A character number in Unicode. A scalar value excludes reserved surrogate numbers.
Byte / bit
A byte is eight bits. A bit has one of two values: zero or one.
Leading / continuation byte
The first piece tells the reader how many bytes belong together. Following pieces start with the bits 10.
Normalization
A specified way to transform Unicode text before comparison. It does not turn every lookalike into the same letter.
BOM
A contextual initial encoding signature. UTF-8 never uses it to switch byte order.

Look up a term in the glossary ↗

Rules & examples
  • The euro sign uses the 1110xxxx 10xxxxxx 10xxxxxx pattern.
  • Only the x positions carry code-point bits.
  • Use the shortest permitted encoding for the value.

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

RFC 3629 §§3–4. Payload groups 0010 / 000010 / 101100. Original bytes E2 82 AC; selected bytes E2 82 AC. This uses the shortest permitted encoding and the restricted second-byte ranges. It does not encode UTF-16 surrogate halves separately.

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.

Start with this guide; no earlier guide is needed for the overview.

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 3629

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 ↗