diff --git a/lib/grammars/java.js b/lib/grammars/java.js index 09126d65..685ee2e2 100644 --- a/lib/grammars/java.js +++ b/lib/grammars/java.js @@ -20,7 +20,7 @@ export const Java = { const classPackages = GrammarUtils.Java.getClassPackage(context) const sourcePath = GrammarUtils.Java.getProjectPath(context) if (windows) { - return [`/c javac -Xlint ${context.filename} && java ${className}`] + return [`/c javac ーJ-Dfile.encoding=UTF-8 -Xlint ${context.filename} && java -Dfile.encoding=UTF-8 ${className}`] } else { return [ "-c",