sandbox
UTF-8 sandbox (encode)
Convert a Unicode code point to UTF-8.
U+00E9
é
2 bytes
Decimal
233
Hexadecimal
0xC3 0xA9
Binary
1
1
0
0
0
0
1
1
1
0
1
0
1
0
0
1
Step-by-step breakdown
-
01
Pick the UTF-8 form
Range
U+0080->U+07FF- 11 useful bits, beyond ASCII.2 bytes · U+0080 → U+07FF -
02
Convert to binary
Code point U+00E9 fits in 11 significant bits (padded to the form's payload length).
00011101001 -
03
Split into chunks
Split by the form's payload-slot widths (5 + 6 bits).
00011 | 101001 -
04
Insert the markers
The first byte carries the marker
110(3 bits); the next carries10(continuation).byte 11 1 0 0 0 0 1 1byte 21 0 1 0 1 0 0 1 -
05
Convert to hexadecimal
Each binary byte becomes its hex value on
2digits.0xC3 0xA9