AndroidAsync icon indicating copy to clipboard operation
AndroidAsync copied to clipboard

POST request passed in JSON with Chinese garbled

Open ICLXL opened this issue 6 years ago • 3 comments

requestHeader has configured Content-Type: "application/json;charset=utf-8", the strange thing is that I found that you did not use the character encoding set configured in the request header, but used ASCII

image

ICLXL avatar Jul 24 '19 01:07 ICLXL

I also had this question, chinese is error code

lifanlife avatar Aug 14 '19 10:08 lifanlife

image I have found a simple solution, you can modify the static character encoding set by reflection when starting the server.

ICLXL avatar Aug 21 '19 07:08 ICLXL

@ICLXL You are a genius. This solution is work. Thank you.

hunter-codes avatar Jul 17 '20 08:07 hunter-codes