File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
src/main/java/com/sendgrid Expand file tree Collapse file tree 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 {
326326 throw new IOException (errors .toString ());
327327 }
328328 }
329- }
329+ }
Original file line number Diff line number Diff line change 77import org .apache .http .client .HttpResponseException ;
88import org .apache .http .impl .client .AbstractResponseHandler ;
99import org .apache .http .util .EntityUtils ;
10+ import java .nio .charset .StandardCharsets ;
1011
1112/**
1213 * 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)
3435 return entity == null ? null : handleEntity (entity );
3536 }
3637
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+ }
4142
4243}
You can’t perform that action at this time.
0 commit comments