37 ms·
Honestly, I thought that was what utf-16 was for. I thought the number was the bitlength of a sign.
by tormeh 13y ago
Honestly, I thought that was what utf-16 was for. I thought the number was the bitlength of a sign.
- ygra 13y agoThe number says how wide a code unit is. However, it doesn't say anything about how many code units are required to encode a single code point. UTF-8 needs 1–4, UTF-16 needs 1–2 and UTF-32 needs 1. They all are able to represent all encoded characters of Unicode, it's just that the individual bytes are different.