Skip to main content

Exercises — Unicode, UTF-8, and normalization

Comprehension question and worked answer

← Back to the lesson: Unicode, UTF-8, and text normalization

Check the distinctions

A letter “é” is displayed on screen. Which statement correctly distinguishes the representation layers?

  1. A character is an abstract text unit; a Unicode code point identifies an element of the code space; UTF-8 encodes code points as bytes.
  2. A character is always one byte; a code point is the token; UTF-8 is the model’s vocabulary.
  3. A code point and a UTF-8 byte are two names for the same thing.
Show the answer and reasoning

The first statement is correct. A perceived character may be represented by one or more code points; each code point is then encoded as a sequence of one to four UTF-8 bytes. Normalization can also map distinct sequences to the same normalized form. Neither code points nor bytes are, by themselves, the tokens or IDs of a particular tokenizer.

Language: Français · English