inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술

HTTP 요청 데이터 - GET 쿼리 파라미터

intelij에서 실행시 한글이 깨지는 현상

291

lsm4p5
0

- 서로 예의를 지키
실습을 하고 있는데요.
한글이 깨지는데요..
 
 
[��ü �Ķ��Ÿ ��ȸ] - start [��ü �Ķ��Ÿ ��ȸ] - end 2022-03-19 21:46:22.832 DEBUG 23240 --- [nio-8080-exec-2] o.a.coyote.http11.Http11InputBuffer : Before fill(): parsingHeader: [true], parsingRequestLine: [true], parsingRequestLinePhase: [0], parsingRequestLineStart: [0], byteBuffer.position(): [0], byteBuffer.limit(): [0], end: [694] 2022-03-19 21:46:22.832 DEBUG 23240 --- [nio-8080-exec-2] o.a.coyote.http11.Http11InputBuffer : Received [] 2022-03-19 21:46:22.832 DEBUG 23240 --- [nio-8080-exec-2] o.apache.coyote.http11.Http11Processor : Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@134ce340:org.apache.tomcat.util.net.NioChannel@1e072aad:java.nio.channels.SocketChannel[connected local=/[0:0:0:0:0:0:0:1]:8080 remote=/[0:0:0:0:0:0:0:1]:51986]], Status in: [OPEN_READ], State out: [OPEN]
며 존중하는 문화를 만들어가요.
- 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.

답변 2

1

lsm4p5

@WebServlet(name="requestParamServlet",urlPatterns = "/request-param")
public class RequestParamServlet extends HttpServlet {

@Override
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
System.out.println("[전체 파라메타 조회] - start ");

request.getParameterNames().asIterator()
.forEachRemaining(paraName -> System.out.println(paraName + "=" + request.getParameter(paraName)));
Enumeration<String> parameterNames = request.getParameterNames();

System.out.println("[전체 파라메타 조회] - end ");
}
}

본문 내용 실행시키면 한글이 나오지를 않아서요.

1

OMG

안녕하세요. lsm4p5님, 공식 서포터즈 OMG입니다.

아래를 참고하여 해결방법을 시도해주세요.

https://da-nyee.github.io/posts/intellij-console-encoding-issue/

해결이 안될 경우 댓글남겨주세요.


감사합니다.