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
parent
fa4722cdd8
commit
8f81278332
|
@ -82,6 +82,7 @@ public class JsonEntityView extends AbstractView {
|
||||||
protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) {
|
protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
|
||||||
response.setContentType(MediaType.APPLICATION_JSON_VALUE);
|
response.setContentType(MediaType.APPLICATION_JSON_VALUE);
|
||||||
|
response.setCharacterEncoding("UTF-8");
|
||||||
|
|
||||||
|
|
||||||
HttpStatus code = (HttpStatus) model.get(HttpCodeView.CODE);
|
HttpStatus code = (HttpStatus) model.get(HttpCodeView.CODE);
|
||||||
|
|
Loading…
Reference in New Issue