Skip to content

Commit

Permalink
DefaultJsonResponseHandler use UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Jost committed Mar 13, 2019
1 parent 53c6afe commit 4605066
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import java.io.InputStreamReader;
import java.io.Reader;
import java.lang.reflect.Type;
import java.nio.charset.StandardCharsets;
import java.util.Set;

import static com.google.common.net.HttpHeaders.CONTENT_TYPE;
Expand Down Expand Up @@ -92,7 +93,7 @@ public T handle(Request request, Response response)
return null;
}

reader = new InputStreamReader(response.getInputStream());
reader = new InputStreamReader(response.getInputStream(), StandardCharsets.UTF_8);

if (response.getStatusCode() == 400)
{
Expand Down

0 comments on commit 4605066

Please sign in to comment.