Unicode and UTF-8
How long is Aé in bytes?
Examples
Worked example
Input
UTF-8 encodes A as one byte and é as two bytes.
Expected output
3 bytes
Hints and solution
Hint 1
Write down the starting state and walk through one example by hand.
Reveal worked answer
Add one byte for A and two for é.