set characters encoding to avoid issue in the response
@@ -249,8 +249,8 @@ public class ContextServlet extends HttpServlet {
boolean noScript = "json".equals(extension);
String contextAsJSONString = CustomObjectMapper.getObjectMapper().writeValueAsString(data);
Writer responseWriter;
- if(noScript){
response.setCharacterEncoding("UTF-8");
+ if (noScript) {
responseWriter = response.getWriter();
response.setContentType("application/json");
IOUtils.write(contextAsJSONString, responseWriter);
