mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-30 01:58:23 +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");
|
||||
|
||||
HttpResponse response = request.open(provider).send();
|
||||
response.charset("UTF-8");
|
||||
String result = response.bodyText();
|
||||
|
||||
WxError error = WxError.fromJson(result);
|
||||
|
||||
@ -37,6 +37,7 @@ public class JoddPostRequestExecutor implements RequestExecutor<String, String>
|
||||
request.bodyText(postEntity);
|
||||
|
||||
HttpResponse response = request.open(provider).send();
|
||||
response.charset("UTF-8");
|
||||
String result = response.bodyText();
|
||||
|
||||
WxError error = WxError.fromJson(result);
|
||||
|
||||
Reference in New Issue
Block a user