Browse Source

force encoding JSON response as UTF-8

tags/v1.0.0
fifthgnat 12 years ago
parent
commit
d7ec6e5fc2
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/com/gitblit/JsonServlet.java

+ 1
- 0
src/com/gitblit/JsonServlet.java View File

@@ -122,6 +122,7 @@ public abstract class JsonServlet extends HttpServlet {
if (o != null) {
// Send JSON response
String json = JsonUtils.toJsonString(o);
response.setCharacterEncoding(Constants.ENCODING);
response.getWriter().append(json);
}
}

Loading…
Cancel
Save