数据必须是Unicode编码,默认编码方式为UTF-8
Unicode
UTF-8
因为json数据前2个字符总是ASCII字符({",与[空格]的组合),所以可以推断出其编码方式
json
ASCII
{"
[空格]
12345
00 00 00 xx UTF-32BE00 xx 00 xx UTF-16BExx 00 00 00 UTF-32LExx 00 xx 00 UTF-16LExx xx xx xx UTF-8
若采用UTF-16或UTF-32,则需要设置content-transfer-encoding为binary??
UTF-16
UTF-32
content-transfer-encoding
binary
参考: