fifthgnat
2012-04-26 d7ec6e5fc2b5c34c85efe8ab186b99de7b4116a7
force encoding JSON response as UTF-8
1 files modified
1 ■■■■ changed files
src/com/gitblit/JsonServlet.java 1 ●●●● patch | view | raw | blame | history
src/com/gitblit/JsonServlet.java
@@ -122,6 +122,7 @@
        if (o != null) {
            // Send JSON response
            String json = JsonUtils.toJsonString(o);
            response.setCharacterEncoding(Constants.ENCODING);
            response.getWriter().append(json);
        }
    }