[ https://issues.apache.org/jira/browse/SLING-263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tobias Bocanegra reopened SLING-263: ------------------------------------ does not work correctly. the response content type still does not include the charset. this time it's the problem of SlingHttpServletResponseImpl not calling the super method in setCharacterEncoding(). see [1] btw: i don't see why the content type handling is explicitly done in the sling response impl once more. this should be handled by the servlet container. [1] http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletResponse.html#setCharacterEncoding(java.lang.String) > json render servlet does not set charset of content type > -------------------------------------------------------- > > Key: SLING-263 > URL: https://issues.apache.org/jira/browse/SLING-263 > Project: Sling > Issue Type: Bug > Components: Launchpad > Reporter: Tobias Bocanegra > Assignee: Felix Meschberger > Fix For: 2.0.0 > > > the launchpad JsonRenderServlet uses incomplete response content type not > specifying the charset. > Index: > launchpad/launchpad-servlets/src/main/java/org/apache/sling/launchpad/servlets/LaunchpadDefaultServlet.java > =================================================================== > --- > launchpad/launchpad-servlets/src/main/java/org/apache/sling/launchpad/servlets/LaunchpadDefaultServlet.java > (revision 629192) > +++ > launchpad/launchpad-servlets/src/main/java/org/apache/sling/launchpad/servlets/LaunchpadDefaultServlet.java > (working copy) > @@ -94,7 +94,7 @@ > > getServlets = new HashMap<String, Servlet>(); > getServlets.put("html", new DefaultHtmlRendererServlet("text/html")); > - getServlets.put("json", new JsonRendererServlet("application/json")); > + getServlets.put("json", new JsonRendererServlet("application/json; > charset=utf-8")); > getServlets.put("txt", defaultGetServlet); > getServlets.put("res", streamServlet); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.