File tree 2 files changed +6
-5
lines changed
src/main/java/com/sendgrid
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -326,4 +326,4 @@ public Response api(Request request) throws IOException {
326
326
throw new IOException (errors .toString ());
327
327
}
328
328
}
329
- }
329
+ }
Original file line number Diff line number Diff line change 7
7
import org .apache .http .client .HttpResponseException ;
8
8
import org .apache .http .impl .client .AbstractResponseHandler ;
9
9
import org .apache .http .util .EntityUtils ;
10
+ import java .nio .charset .StandardCharsets ;
10
11
11
12
/**
12
13
* A {@link org.apache.http.client.ResponseHandler} that returns the response body as a String
@@ -34,9 +35,9 @@ public String handleResponse(final HttpResponse response)
34
35
return entity == null ? null : handleEntity (entity );
35
36
}
36
37
37
- @ Override
38
- public String handleEntity (HttpEntity entity ) throws IOException {
39
- return EntityUtils .toString (entity );
40
- }
38
+ @ Override
39
+ public String handleEntity (HttpEntity entity ) throws IOException {
40
+ return EntityUtils .toString (entity , StandardCharsets . UTF_8 );
41
+ }
41
42
42
43
}
You can’t perform that action at this time.
0 commit comments