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

Pack a code point

02

Payload bits are distributed into the selected byte pattern.

Related RFCs and changes

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

DIAGRAM§ 3 ↗
RFC 3629 · § 3EXAMPLE
3 / 3
Pack a code pointPayload bits are distributed into the selected byte pattern.Pack a code pointU+20AC = 0010 000010 1011001110 001010 00001010 101100E2 82 AC
03
Obtain E2 82 AC

The resulting bytes decode to the original scalar value.

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

The euro sign uses the 1110xxxx 10xxxxxx 10xxxxxx pattern.

  • 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.
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. Variable-length encoding
  2. Pack a code point
  3. Validate byte sequences
  4. Byte-order mark
  5. Text comparison and security
RFC 9700 / CHAPTERS

Chapters

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

RFC status and corrections ↗