What does it mean to say “Java Modified UTF-8 Encoding”?

前端 未结 3 1908
Happy的楠姐
Happy的楠姐 2020-12-03 12:17

What does it mean to say \"Java Modified UTF-8 Encoding\" ? How is it different from normal UTF-8 Encoding?

3条回答
  •  甜味超标
    2020-12-03 12:38

    The Java programming language, which uses UTF-16 for its internal text representation, supports a non-standard modification of UTF-8 for string serialization. This encoding is called modified UTF-8. There are two differences between modified and standard UTF-8. The first difference is that the null character (U+0000) is encoded with two bytes instead of one, specifically as 11000000 10000000.

提交回复
热议问题