diff --git a/core/devmode/src/main/java/io/quarkus/dev/JavaCompilationProvider.java b/core/devmode/src/main/java/io/quarkus/dev/JavaCompilationProvider.java index 595495286a16f..4d278df56fe8f 100644 --- a/core/devmode/src/main/java/io/quarkus/dev/JavaCompilationProvider.java +++ b/core/devmode/src/main/java/io/quarkus/dev/JavaCompilationProvider.java @@ -3,6 +3,7 @@ import java.io.File; import java.io.IOException; import java.io.InputStream; +import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; @@ -42,7 +43,8 @@ public void compile(Set filesToCompile, Context context) { throw new RuntimeException("No system java compiler provided"); } DiagnosticCollector diagnostics = new DiagnosticCollector<>(); - try (StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnostics, null, null);) { + try (StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnostics, null, + StandardCharsets.UTF_8)) { fileManager.setLocation(StandardLocation.CLASS_PATH, context.getClasspath()); fileManager.setLocation(StandardLocation.CLASS_OUTPUT, Collections.singleton(context.getOutputDirectory()));