How many characters can UTF-8 encode?

前端 未结 10 1217
一个人的身影
一个人的身影 2020-11-28 01:55

If UTF-8 is 8 bits, does it not mean that there can be only maximum of 256 different characters?

The first 128 code points are the same as in ASCII. But it says UTF-

10条回答
  •  有刺的猬
    2020-11-28 02:18

    Quote from Wikipedia: "UTF-8 encodes each of the 1,112,064 code points in the Unicode character set using one to four 8-bit bytes (termed "octets" in the Unicode Standard)."

    Some links:

    • http://www.utf-8.com/
    • http://www.joelonsoftware.com/articles/Unicode.html
    • http://www.icu-project.org/docs/papers/forms_of_unicode/
    • http://en.wikipedia.org/wiki/UTF-8

提交回复
热议问题