diff --git a/tested/judge/utils.py b/tested/judge/utils.py index cd7f184e..4ce85f37 100644 --- a/tested/judge/utils.py +++ b/tested/judge/utils.py @@ -60,8 +60,8 @@ def run_command( ) except subprocess.TimeoutExpired as e: return BaseExecutionResult( - stdout=str(e.stdout or ""), - stderr=str(e.stderr or ""), + stdout=e.stdout.decode("utf-8", "backslashreplace") if e.stdout else "", + stderr=e.stderr.decode("utf-8", "backslashreplace") if e.stderr else "", exit=0, timeout=True, memory=False,