Skip to content

Commit f9b96eb

Browse files
authored
Merge pull request #6 from walkmane99/decode_utf-8
To decode in UTF-8
2 parents 14554c4 + 014789e commit f9b96eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/JanLoebel/jsonschemavalidation/advice/JsonValidationRequestBodyControllerAdvice.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private String toString(HttpInputMessage inputMessage) throws IOException {
8585
}
8686

8787
private InputStream fromString(String body) {
88-
return new ByteArrayInputStream(body.getBytes());
88+
return new ByteArrayInputStream(body.getBytes(StandardCharsets.UTF_8));
8989
}
9090

9191
private HttpInputMessage buildHttpInputMessage(String body, HttpHeaders httpHeaders) {

0 commit comments

Comments
 (0)