I believe it depends on the operating system defaults, but we have found that our compiler is expecting US-ASCII encoding for java source code.
Would it be worth making -encoding UTF-8 the default setting in the question prototypes? (I know I can set this using Advanced Customisation settings.)
Test code:
System.out.println("Default Charset=" + java.nio.charset.Charset.defaultCharset());
Thanks,Anton