mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 18:46:10 +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
	 Daniel Qian
					Daniel Qian