lewis liu
lewis liu
Please support this, I have this requirement too
建议默认添加 charset=utf8 到返回头的 content-type 中。否则要不用户自己加,要不就是乱码。
@KyleQiao1992 自己修改返回头,添加charset=utf8
@codingfishman 中文都是乱码,不需要重现方案。建议给返回头默认加上 charset-utf8;
@codingfishman 原始的content-type就是手动加上的type,比如 `text/plain` 等,为了防止乱码,应该是 `text/plain; charset=utf8`
@codingfishman 你说的也有道理,那就让用户自己添加 charset 吧,或者当用户不指定charset时候,你们默认添加一个 utf8。
I have the same problem, hope it to be resolved as soon as possible.
This solution worked for me! So I share it with everyone here.