summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2012-08-18 15:22:11 -0400
committerJames Moger <james.moger@gitblit.com>2012-08-18 15:22:11 -0400
commit12c7592c32b89b4687c92923fbd4d9a53af08346 (patch)
tree46a0a428e967f08e42e1da933869c50b02a752ea
parent4bcaea2e40ab1ee192888f7d29c334a2a3cd3699 (diff)
downloadgitblit-12c7592c32b89b4687c92923fbd4d9a53af08346.tar.gz
gitblit-12c7592c32b89b4687c92923fbd4d9a53af08346.zip
Fixed string encoding regression introduced with fix for BOM
-rw-r--r--src/com/gitblit/utils/StringUtils.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/com/gitblit/utils/StringUtils.java b/src/com/gitblit/utils/StringUtils.java
index 3972f202..c13be8ad 100644
--- a/src/com/gitblit/utils/StringUtils.java
+++ b/src/com/gitblit/utils/StringUtils.java
@@ -594,7 +594,6 @@ public class StringUtils {
// ignore unsupported charsets
}
}
- value = new String(content, Charset.forName("UTF-8"));
if (value.startsWith("\uFEFF")) {
// strip UTF-8 BOM
return value.substring(1);