본문 바로가기

JAVA

[JAVA] 한글 깨짐 & error unmappable character (0xEB) for encoding x-windows-949 에러 해결


 

 

build 할 때 한글이 깨지며 unmappable character (0xEC) for encodig x-windows-949 에러가 발생할 때 해결하는

방법에 대해 소개하도록 하겠습니다.

 


1. Global Encoding 확인

file -> settings -> file encodings -> Global Encodingdl UTF-8로 되어있는지 확인.

 

2. Dfile.encoding = UTF-8 추가

help -> Edit custom vm option -> -Dfile.encoding=UTF-8 추가

 


3. Build and run using 확인

 

setting -> Build, Execution, Deployment -> Build Tools -> Gradle -> build and run using -> IntelliJ로 변경

 

위의 2가지 방법으로도 에러가 발생하면 아래의 방법을 해보시길 바랍니다.