Merge pull request #2994 from wadahiro/KEYCLOAK-3259
KEYCLOAK-3259 Specify UTF-8 encoding for freemarker template files
This commit is contained in:
commit
435cdb6180
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue