wujunchuan / wujunchuan.github.io

John Trump's personal blog in issues
115 stars 13 forks source link

解决Mac下Charles出现中文乱码的问题 #4

Closed wujunchuan closed 7 years ago

wujunchuan commented 7 years ago

Charles 版本:4.0 出现中文乱码,在response和request中都会出现.看了网上,有修改JVM配置文件的,应该是特定版本的解决方案,这种解决方案参考:Charles 3.11.2 中文乱码

针对这个问题,官网上文档解释:Strange characters appear in the response

Please check that the character encoding or charset is correctly set by the server, otherwise Charles will guess and may not guess correctly.

You may also need to choose a font that can display the charset in the response. You can change the font used in the Preferences on the User Interface tab. You will need to restart Charles for those changes to take effect.

大意就是,如果服务器返回的数据没有指定encoding的话,Charles就会去猜测这个编码(往往都是错的)

这种问题解决方案:Charles Response 中文乱码

wujunchuan commented 7 years ago

7 解决~!