Java Output Character Encoding

I have a simple autograding workflow where I run
javac *.java
java Test

Where Test is a java class that compares the output of the students’ programs to some expected output.

It has worked great for most assignments, but one recent assignment has some expected UTF-8 output and the non-ASCII characters are getting output to the console as question marks. Is there a way to ensure that the character encoding that the actions run in is UTF-8?

© 2017 GitHub, Inc.
with by
GitHub Education