Commit 7aa8099f authored by Gian Saß's avatar Gian Saß

Fix encoding errors when writing output file

parent 1031c8a9
......@@ -76,7 +76,7 @@ module JavaSubmissionTester
Tempfile.open("input-#{task.id}") do |input_file|
input_file.write input.input.read()
Tempfile.open("output-#{submission.id}") do |output_file|
output_file.write submission.output.read()
output_file.write submission.output.read().force_encoding("UTF-8")
puts "input file:",input_file.read()
puts "output file:",output_file.read()
result = run_json_reporter(working_dir,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment