"é" in UTF-8 — binary and text
coretwo bytes for one character
Answer
11000011 10101001
Why this example is worth doing
The first character on the page that is not one byte. UTF-8 encodes é as two bytes, and the leading bits of each say how many bytes the sequence has and which are continuations. The page decodes those prefix bits explicitly, because the self-synchronising structure is the clever part of UTF-8 and it is what makes the encoding recoverable from any starting position. It also shows why ASCII text is unchanged under UTF-8.
Try your own input in the Binary ⇄ text / ASCII. Convert text to binary and back, byte by byte, with the full UTF-8 breakdown.
How the answer is reached
UTF-8 encoding of 1 character
UTF-8 (RFC 3629): the leading byte says how many bytes follow, and every continuation byte starts 10.
| character | code point | decimal | hex | binary | template |
|---|---|---|---|---|---|
| é | U+00E9 | 233 | C3 A9 | 11000011 10101001 | 110xxxxx 10xxxxxx |
| count | value |
|---|---|
| bytes | 2 |
| code points | 1 |
| UTF-16 code units | 1 |
Source: RFC 3629; WHATWG Encoding Standard