I have already written in my encoding UTF-8 everywhere: in jsp:
<% response.setCharacterEncoding("UTF-8"); %> <% response.setContentType("text/html; charset=UTF-8");%> <% request.setCharacterEncoding("UTF-8"); %> in the controller:
@RequestMapping(method = RequestMethod.GET, produces = { "text/html;charset=UTF-8" }) @RequestMapping(method = RequestMethod.POST, produces = { "text/html;charset=UTF-8" }) in bins:
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix" value="/WEB-INF/views/" /> <property name="suffix" value =".jsp" /> <property name="contentType" value="text/html; charset=UTF-8"/> </bean> in configuration:
InternalResourceViewResolver viewResolver = new InternalResourceViewResolver(); viewResolver.setContentType("text/html;charset=UTF-8"); in web.xml:
<jsp-config> <jsp-property-group> <url-pattern>*.jsp</url-pattern> <page-encoding>UTF-8</page-encoding> </jsp-property-group> </jsp-config> but still the request goes in the wrong encoding and, after checking, gives "СѲ ²" instead of "fv"
<head><meta charset="UTF-8"></head>? and add the minimum jsp code of the page where the encoding is not displayed correctly so that it can be reproduced. - MrFylypenko