looks like the json default encoding is UTF-8 Spring mvc returns "application/json; charset=utf-8 " by default and pretty hard to change it.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
According to RFC 4627
JSON text SHALL be encoded in Unicode. The default encoding is UTF-8.
It goes on to describe how the different UTF-* encoding are to be detecting, suggesting that no other encodings are supported.
"SHALL" represents an absolute requirement here (see RFC 2119).
And there really is no reason to use a non-UTF encoding with JSON (as anything that can handle JSON can definitely handle UTF-8).