We really should specify an encoding here and not depend on the

servers default encoding, shouldn't we? It becomes ISO-8859-1
otherwise in Tomcat as per the Servlet specification.
pull/1046/merge
Fredrik Jönsson 2016-04-18 19:44:42 +02:00 committed by Justin Richer
parent fa4722cdd8
commit 8f81278332
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ public class JsonEntityView extends AbstractView {
protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) {
response.setContentType(MediaType.APPLICATION_JSON_VALUE);
response.setCharacterEncoding("UTF-8");
HttpStatus code = (HttpStatus) model.get(HttpCodeView.CODE);