한글 깨짐 현상
너만
2023.04.01
....
public void doPost (HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException { PrintWriter out;
out = res.getWriter();
res.setContentType(text/html;charset=EUC-KR);
out.println(한글 테스트);
.....
위와 같이 실행했을 경우 한글 깨짐 현상이 발생합니다..
다른 방법좀 알려주세요...
-
다인
[자답]
res.setContentType(\text/html;charset=EUC-KR\);
PrintWriter out;
out = res.getWriter();
위와 같이 순서를 바꾸면 됩니다...^^ -
시윤
질답란에서 \한글\ 로 검색해보세요