编码方式转换 Differences between UTF-8 format and Java modified UTF-8 format The null byte (byte)0 is encoded using the 2-byte format rather than the 1-byte format, so that Java virtual machine UTF-8 strings never have embedded nulls. Only the 1-byte, 2-byte, and 3-byte formats are used.