Skip to content

Commit

Permalink
To decode in UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
bccmurakami committed Jun 21, 2021
1 parent 14554c4 commit 014789e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private String toString(HttpInputMessage inputMessage) throws IOException {
}

private InputStream fromString(String body) {
return new ByteArrayInputStream(body.getBytes());
return new ByteArrayInputStream(body.getBytes(StandardCharsets.UTF_8));
}

private HttpInputMessage buildHttpInputMessage(String body, HttpHeaders httpHeaders) {
Expand Down

0 comments on commit 014789e

Please sign in to comment.