3 ms·
UTF8 is indeed variable width; UTF16 and UTF32 are, AFAIK, fixed width. Both use unicode standard. Your knowledge is wrong. As of 2012, there are 110,182 assi
by btilly 13y ago
UTF8 is indeed variable width; UTF16 and UTF32 are, AFAIK, fixed width. Both use unicode standard.
Your knowledge is wrong.
As of 2012, there are 110,182 assigned Unicode characters, and 137,468 more which have been reserved for private use.
With 16 bits there are only 65,536 possible values, and so UTF-16 has to be variable width. (Though it was originally intended to be fixed width. A misconception unfortunately embedded in the design of languages from the time such as Java.)