Dev_Tool/Eclipse

[Eclipse] UTF-8 설정

LeeDaniel 2021. 3. 3. 14:45
반응형
✔ 이미 다른 인코딩 방식으로 생성된 프로젝트 or 파일의 경우
    인코딩을 변경하면 한글이 깨지므로 주의


1. Window > Preferences > General > Content Types

   Java Class File 선택 > Default encoding을 UTF-8로 작성 > Update 클릭

 

Java Class File을 UTF-8로 설정


2. Window > Preferences > General > Content Types

   Text 선택 > Default encoding을 UTF-8로 작성 > Update 클릭

Text > Default encoding을 UTF-8로 설정


3. Window > Preferences > General > Workspace

   Text file encoding > Other선택후 UTF-8작성 > Apply 클릭

Workspace를 UTF-8로 설정


4. Window > Preferences > General > Editors > Text Editors > Spelling

   Encoding > Other선택후 UTF-8작성 > Apply 클릭

Text Editors > Spelling > UTF-8 설정


5. Window > Preferences > Web > CSS Files

   Encoding > ISO 10646/Unicode(UTF-8) 선택 > Apply 클릭

Web > CSS Files > UTF-8 설정


6. Window > Preferences > Web > HTML Files

   Encoding > ISO 10646/Unicode(UTF-8) 선택 > Apply 클릭

Web > HTML Files > UTF-8 설정


7. Window > Preferences > Web > JSP Files

   Encoding > ISO 10646/Unicode(UTF-8) 선택 > Apply 클릭

Web > JSP Files > UTF-8 설정


8. Window > Preferences > XML > XML Files

   Encoding > ISO 10646/Unicode(UTF-8) 선택 > Apply 클릭

XML > XML Files > UTF-8 설정

반응형