Skip to content

Commit

Permalink
Merge pull request #476 from SWM-NM/dev
Browse files Browse the repository at this point in the history
[FIX] 코드 결과값 반환시 UTF-8 설정
  • Loading branch information
aj4941 authored Oct 18, 2023
2 parents 60cce1e + cbadc70 commit 4ea7f6a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public OutputDto runCode(InputData inputData) throws Exception {
// Create POST request
HttpPost httpPost = new HttpPost(url);
httpPost.setHeader("Content-Type", "application/json");
httpPost.setEntity(new StringEntity(inputDataJson));
httpPost.setEntity(new StringEntity(inputDataJson, "UTF-8"));

// Send POST request
HttpResponse response = httpClient.execute(httpPost);
Expand Down Expand Up @@ -71,7 +71,7 @@ public List<OutputDto> runTestCaseCode(TestInputData testInputData) throws Excep
// Create POST request
HttpPost httpPost = new HttpPost(tcUrl);
httpPost.setHeader("Content-Type", "application/json");
httpPost.setEntity(new StringEntity(inputDataJson));
httpPost.setEntity(new StringEntity(inputDataJson, "UTF-8"));

// Send POST request
HttpResponse response = httpClient.execute(httpPost);
Expand Down

0 comments on commit 4ea7f6a

Please sign in to comment.