Skip to content

Commit

Permalink
Set compiler configuration's source encoding to UTF-8 explicitly (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rongmario authored Feb 11, 2024
1 parent e669145 commit e112eac
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ protected void stopRunning() {
protected GroovyScriptEngine createScriptEngine() {
GroovyScriptEngine engine = new GroovyScriptEngine(this.scriptEnvironment);
CompilerConfiguration config = new CompilerConfiguration(CompilerConfiguration.DEFAULT);
config.setSourceEncoding("UTF-8");
engine.setConfig(config);
initEngine(engine, config);
return engine;
Expand Down

0 comments on commit e112eac

Please sign in to comment.