Skip to content

Commit

Permalink
Merge pull request #13 from evolvedbinary/fix/windows-encoding
Browse files Browse the repository at this point in the history
[fix] force utf-8 encoding in windows
  • Loading branch information
adamretter authored Oct 31, 2023
2 parents 4720420 + d3c7560 commit 0094a19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void transform(final InputStream content, final Path transformation, fina
final char buf[] = new char[4096];
int read = -1;
try(final Reader jsonReader = new StringReader(jsonResult);
final Writer writer = new OutputStreamWriter(result)) {
final Writer writer = new OutputStreamWriter(result, UTF_8)) {
while((read = jsonReader.read(buf)) > -1) {
writer.write(buf, 0, read);
}
Expand Down

0 comments on commit 0094a19

Please sign in to comment.