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 {