From 00cb0a798ab6db9b2778616e03cfd619d49216ec Mon Sep 17 00:00:00 2001 From: Hiroyuki Wada Date: Mon, 4 Jul 2016 17:41:35 +0900 Subject: [PATCH] KEYCLOAK-3259 Specify UTF-8 encoding for freemarker template files --- services/src/main/java/org/keycloak/theme/FreeMarkerUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/src/main/java/org/keycloak/theme/FreeMarkerUtil.java b/services/src/main/java/org/keycloak/theme/FreeMarkerUtil.java index 0d3f98b9d0..5aa66286d7 100755 --- a/services/src/main/java/org/keycloak/theme/FreeMarkerUtil.java +++ b/services/src/main/java/org/keycloak/theme/FreeMarkerUtil.java @@ -68,7 +68,7 @@ public class FreeMarkerUtil { private Template getTemplate(String templateName, Theme theme) throws IOException { Configuration cfg = new Configuration(); cfg.setTemplateLoader(new ThemeTemplateLoader(theme)); - return cfg.getTemplate(templateName); + return cfg.getTemplate(templateName, "UTF-8"); } class ThemeTemplateLoader extends URLTemplateLoader {