getTemplateEngineConfiguration().setEncoding(ApplicationContext.getInstance().getLocale(), "UTF-8");
try {
getRequest().setCharacterEncoding("UTF-8");
} catch (UnsupportedEncodingException e) {
throw new ConfigurationException("Can't find UTF-8.", e);
}
getResponse().setCharacterEncoding("UTF-8");
getResponse().setContentType("text/html");
}