- 기타(?) 파일 UTF-8설정

기타(?)파일 한글 설정







이클립스 작업시 *.properties 파일에 한글 저장이 안된다

에러는

Save could not be completed.

Reason:
  some characters cannot be mapped using "ISO-8859-1" character encoding.

...

이런식으로 나오면서 저장이 안됐는데

해당 파일을 찾아서(없으면 ADD) default encoding을 해당 encoding으로 변경 하면 됨

아래는 원문 URL

원문 : http://www.okjsp.pe.kr/seq/99633




windows > preferences... > 검색창에 type 이라고 치시면 Content Types 나옵니다.

거기서 JSP 찾아서 default를 euc-kr 로 잡아주시면 됩니다. update 누르시구요.



new String(propertyValue.getBytes("8859_1"))로 인코딩

자바에서는 property를 ISO-8859-1 인코딩으로만 인식


http://www.okjsp.pe.kr/seq/93874





 

Posted by 張's blog
,