반응형
인코딩 문제
server.xml에서 URIEncoding="UTF-8" 추가
<ConnectorconnectionTimeout="20000"port="8080"protocol="HTTP/1.1"
redirectPort="8443"URIEncoding="UTF-8"/>
web.xml에서
<!-- ================== Built In Filter Definitions ===================== -->
<!-- A filter that sets character encoding that is used to decode -->
<!-- parameters in a POST request -->
<filter>
<filter-name>setCharacterEncodingFilter</filter-name>
<filter-class>org.apache.catalina.filters.SetCharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<!-- <async-supported>true</async-supported> -->
<!-- A filter that sets character encoding that is used to decode -->
<!-- parameters in a POST request -->
<filter>
<filter-name>setCharacterEncodingFilter</filter-name>
<filter-class>org.apache.catalina.filters.SetCharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<!-- <async-supported>true</async-supported> -->
</filter>
와
<mime-mapping>
<extension> htm</ extension>n
<mime-type> text/html;charset=UTF-8</mime-type >
</mime-mapping >
<mime-mapping >
<extension> html</ extension>
<mime-type> text/html;charset=UTF-8</mime-type >
</mime-mapping >
<mime-mapping >
추가
eclipse안에서
window > Preferences > encoding 검색 > General\Workspace 에서 UTF-8 설정 > Web\CSS Files에서 UTF-8 설정 > Web\HTML Files에서 UTF-8 설정 > Web\JSP Files에서 UTF-8 설정
프로젝트 우클릭 > Preferties > Resource에서 UTF-8 설정
반응형
'개발의 흔적 > etcetera' 카테고리의 다른 글
메일 서버의 특정 도메인 스팸 처리 이슈 (0) | 2024.02.23 |
---|---|
구글 메일 서버의 메일 수신 시 도메인 인증(SPF, DKIM, DMARC) gmail로 메일이 발송이 안되는 이슈 (0) | 2024.02.23 |
[오류] org.springframework.restdocs.snippet.SnippetException: The following parts of the payload were not documented: (0) | 2023.09.01 |
서비스 해외 접속 시 속도관련이슈 대응 내역 (0) | 2020.02.04 |
HTTP 에러 코드 (0) | 2018.06.22 |