Skip to content

Commit

Permalink
fix: use Environment encoding when writing files on disk (#2796)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvojtechovsky authored and monperrus committed Nov 29, 2018
1 parent ffc534e commit 1ede105
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ protected InputStream getCompilationUnitInputStream(String path) {
PrettyPrinter printer = env.createPrettyPrinter();
printer.calculate(cu, toBePrinted);

return new ByteArrayInputStream(printer.getResult().getBytes());
return new ByteArrayInputStream(printer.getResult().getBytes(env.getEncoding()));
}

protected Environment getEnvironment() {
Expand Down

0 comments on commit 1ede105

Please sign in to comment.