3. How it works?
— Vikas Rajput (@vikasrajputin) May 24, 2023
Think of UTF-8 as a bento box with different compartments.
The simplest characters only need one compartment (1 byte), while more complex ones may need up to four compartments (4 bytes).
But don't worry, UTF-8 always packs them in a neat way!