From dbf1ea6e64e689ef6d66b1437644bb63be6c3372 Mon Sep 17 00:00:00 2001 From: "aj4941@naver.com" Date: Wed, 18 Oct 2023 17:05:07 +0900 Subject: [PATCH] =?UTF-8?q?:pencil2:=20[FIX]=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EA=B2=B0=EA=B3=BC=EA=B0=92=20=EB=B0=98=ED=99=98=EC=8B=9C=20UTF?= =?UTF-8?q?-8=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../morandi/domain/testDuring/service/RunCodeService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/swm_nm/morandi/domain/testDuring/service/RunCodeService.java b/src/main/java/swm_nm/morandi/domain/testDuring/service/RunCodeService.java index b29f7206..af0015f7 100644 --- a/src/main/java/swm_nm/morandi/domain/testDuring/service/RunCodeService.java +++ b/src/main/java/swm_nm/morandi/domain/testDuring/service/RunCodeService.java @@ -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); @@ -71,7 +71,7 @@ public List 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);