How it works
- Each character is encoded as one or more bytes in UTF-8; each byte becomes 8 bits
- ASCII characters (A-Z, 0-9, punctuation) take exactly 1 byte = 8 bits
- Non-ASCII characters (Chinese, emoji, accented letters) take 2–4 bytes in UTF-8
- Spaces between bytes are optional but make output more readable