issue #172 jodd HttpResponse add charset("UTF-8")

This commit is contained in:
Daniel Qian
2016-01-11 09:01:48 +08:00
parent 25eb592f26
commit c8ed7738ab
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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);