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가지 방법으로도 에러가 발생하면 아래의 방법을 해보시길 바랍니다.
'JAVA' 카테고리의 다른 글
[JAVA] 얕은 복사(Shallow Copy)와 깊은 복사(Deep Copy) (0) | 2023.03.15 |
---|---|
[JAVA] 싱글턴 패턴(Singleton pattern) (0) | 2023.03.14 |
[JAVA] 어노테이션 (Annotation) (0) | 2023.03.12 |
[JAVA] 컬렉션 프레임워크(Collection Framework) - Iterator (6) (0) | 2023.03.11 |
[JAVA] 컬렉션 프레임워크(Collection Framework) - Stack,Queue (5) (0) | 2023.03.11 |