본문 바로가기

IDE

Intellij 에서 Tomcat Console 한글깨짐

 

Intellij 에서 Tomcat Console 한글깨짐

JVM 인코딩 문제입니다.

해결방법 3가지

1. Intellij .vmoptions 에 encoding 설정

[intellij_dir] bin idea64.exe.vmoptions

 

C:\Users\user\AppData\Roaming\JetBrains\IntelliJIdea2021.1\idea64.exe.vmoptions

추가 : -Dfile.encoding=UTF-8

 

2. Tomcat Server VM options 설정

VM options 에 추가 : -Dfile.encoding=UTF-8

 

3. Tomcat Server VM options 설정

톰캣을 언어변경 영문/한글으로 변경해주면 됩니다.(이웃 정보:댓글 참고)

아래와 같이 VM options 에 추가 

 

 -Duser.language=en -Duser.region=US

 

또는

 

 -Duser.language=kr -Duser.region=KR