summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket/GitBlitWebApp.java
diff options
context:
space:
mode:
authorkxyfyh <kxyfyh@vip.qq.com>2013-11-18 21:41:04 +0800
committerkxyfyh <kxyfyh@vip.qq.com>2013-11-18 21:41:04 +0800
commit4cec4b102164390540e904685db244ae63f83254 (patch)
tree0b8720858274efdc4af53222c31b91db387ddeb8 /src/main/java/com/gitblit/wicket/GitBlitWebApp.java
parenta5c69b6b7070c7cac977f2e837e81a17a208b3d5 (diff)
downloadgitblit-4cec4b102164390540e904685db244ae63f83254.tar.gz
gitblit-4cec4b102164390540e904685db244ae63f83254.zip
修改中文显示问题及raw默认属性
Diffstat (limited to 'src/main/java/com/gitblit/wicket/GitBlitWebApp.java')
-rw-r--r--src/main/java/com/gitblit/wicket/GitBlitWebApp.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/wicket/GitBlitWebApp.java b/src/main/java/com/gitblit/wicket/GitBlitWebApp.java
index 9adbb943..70aa1a6a 100644
--- a/src/main/java/com/gitblit/wicket/GitBlitWebApp.java
+++ b/src/main/java/com/gitblit/wicket/GitBlitWebApp.java
@@ -137,6 +137,8 @@ public class GitBlitWebApp extends WebApplication {
mount("/user", UserPage.class, "user");
mount("/forks", ForksPage.class, "r");
mount("/fork", ForkPage.class, "r");
+
+ getMarkupSettings().setDefaultMarkupEncoding("UTF-8");
}
private void mount(String location, Class<? extends WebPage> clazz, String... parameters) {