intellij

intellij 한글 깨짐 관

slow333 2022. 12. 14. 21:03

한글 깨짐 관련 내용 .. 전반적인 것

intellij awt 한글 깨짐
ctr+shift+a >  Edit Custom VM Options > -Dfile.encoding=UTF-8
menu에서 run > edit configuration > vm option > -Dfile.encoding=MS949
index.jsp 한글깨짐
<html>앞에 <%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-KR"%>


eclipse 한글 깨짐
src > package >에서 properties > resource > text file endoding MS949로 변경

awt 에서 한글 깨짐...
project에서 오른쪽 마우스 클릭 > properties > Run/Debug Settings > 해당 파일 선택 > Edit > Arguments > VM arguments>
-Dfile.encoding=MS949    <== 내용 추가


MS949로해야 윈도우에 한글 나옴


tomcat 콘솔 한글 깨짐 해결
  - servier.xml => 
  <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" URIEncoding="UTF-8" /> ==> URIEncoding 추가
  - catalina.bat 에 아래 내용 추가
set JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER% "-Dfile.encoding=utf-8"

'intellij' 카테고리의 다른 글

intellij 단축(window)  (0) 2023.01.11
Manifest 속성이 없습니다.  (0) 2022.12.14
intellij jsp 프로젝트 생성  (0) 2022.12.14