1.jsp utf-8인지 확인
2.web.xml에 필터추가
<filter>
<filter-name>encoding</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>encoding</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
3.AJAX 이용시 @RequestMapping() 에 produces 추가 (charset 앞에내용은 Content-Type이 들어감)
@RequestMapping(value = "/r", method = RequestMethod.POST, produces="text/html; charset=utf8")
아니면 AJAX 헤더에 charset=UTF8 추가
$.ajax({ type : 'post', url : '/r',
headers : { "Content-Type" : "text/html; charset=UTF-8", "X-HTTP-Method-Override" : "POST" },
dataType : 'text',
data : jspText,
success : function(result)
{ alert(result); moveHtml(result); } });