James Moger
2012-04-26 c3a1cb2748aacd3658757b20fa56eeaf52284564
Merge pull request #14 from WenWu/master

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);
        }
    }