Skip to content

Commit 355e454

Browse files
Merge pull request judge0#218 from mejibyte/patch-1
Elaborate on why base64_encoded is needed on GET requests
2 parents efe5dde + dbe0a79 commit 355e454

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/submissions/get_a_submission.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ By default Judge0 is sending 8 attributes for submission. By sending `fields` qu
77

88
+ Parameters
99
+ token (required, string, `d85cd024-1548-4165-96c7-7bc88673f194`) ... Token of submission. You got this token when you created submission.
10-
+ base64_encoded (optional, boolean, `false`) ... Set to `true` if you want to receive Base64 encoded data from Judge0.
10+
+ base64_encoded (optional, boolean, `false`) ... Set to `true` if you want to receive Base64 encoded data from Judge0. You should set this to `true` if you expect the program's stdout to contain non-printable characters or if you expect the compiler to output non-printable characters during a compile error (GCC does this, for instance).
1111
+ fields = `stdout,time,memory,stderr,token,compile_output,message,status` (optional, string, `stdout,stderr,status_id,language_id`) ... Return only the desired attributes.
1212

1313
+ Response 200 (applicatiion/json)
@@ -36,7 +36,7 @@ By default Judge0 is sending 8 attributes for submission. By sending `fields` qu
3636
}
3737

3838
+ Response 200 (application/json)
39-
Recieving Base64 encoded data for text type attributes. Note that in this reques `base64_encoded` query parameter **must** be set to `true`.
39+
Receiving Base64 encoded data for text type attributes. Note that in this request `base64_encoded` query parameter **must** be set to `true`.
4040
+ Body
4141
{
4242
"stdout": "aGVsbG8sIEp1ZGdlMAo=\n",

0 commit comments

Comments
 (0)