mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-11-01 03:25:35 +08:00
issue #172 jodd HttpResponse add charset("UTF-8")
This commit is contained in:
@ -43,6 +43,7 @@ public class JoddGetRequestExecutor implements RequestExecutor<String, String> {
|
|||||||
request.charset("UTF-8");
|
request.charset("UTF-8");
|
||||||
|
|
||||||
HttpResponse response = request.open(provider).send();
|
HttpResponse response = request.open(provider).send();
|
||||||
|
response.charset("UTF-8");
|
||||||
String result = response.bodyText();
|
String result = response.bodyText();
|
||||||
|
|
||||||
WxError error = WxError.fromJson(result);
|
WxError error = WxError.fromJson(result);
|
||||||
|
|||||||
@ -37,6 +37,7 @@ public class JoddPostRequestExecutor implements RequestExecutor<String, String>
|
|||||||
request.bodyText(postEntity);
|
request.bodyText(postEntity);
|
||||||
|
|
||||||
HttpResponse response = request.open(provider).send();
|
HttpResponse response = request.open(provider).send();
|
||||||
|
response.charset("UTF-8");
|
||||||
String result = response.bodyText();
|
String result = response.bodyText();
|
||||||
|
|
||||||
WxError error = WxError.fromJson(result);
|
WxError error = WxError.fromJson(result);
|
||||||
|
|||||||
Reference in New Issue
Block a user