From 12c7592c32b89b4687c92923fbd4d9a53af08346 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Sat, 18 Aug 2012 15:22:11 -0400
Subject: [PATCH] Fixed string encoding regression introduced with fix for BOM
---
src/com/gitblit/JsonServlet.java | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/com/gitblit/JsonServlet.java b/src/com/gitblit/JsonServlet.java
index 5433a61..3ad2b7d 100644
--- a/src/com/gitblit/JsonServlet.java
+++ b/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);
}
}
--
Gitblit v1.9.1