> For the complete documentation index, see [llms.txt](https://heunnajo.gitbook.io/mvc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://heunnajo.gitbook.io/mvc/3.-jsp-mvc/html-troubleshooting.md).

# HTML에서 한글이 보이지 않는 이슈 TroubleShooting

원인

HTTP 메시지를 주고받을 때는 반드시 문자 인코딩 정보를 포함해야한다! HTML 응답메시지를 작성할 때 response.SetCharacterEncoding("utf-8"); 로 해주어야하는데 위의 코드를 복붙한 후 수정하지 않아서 response.SetContentType("utf-8")로 해버려 문자인코딩 정보를 주지않아서 한글을 렌더링하지 못했던 것이다!

해결 방법

**문자인코딩정보를 꼭 셋팅한다!!!**\
**response.SetCharacterEncoding("utf-8");**&#x20;
