cancel
Showing results for 
Search instead for 
Did you mean: 

Problem using utf-8 encoded freemarker templates

sam1980
Champ in-the-making
Champ in-the-making
Currently I am building a project based on the example webapp provided by WQS; wcmqs. The wcmqs webapp seems to have problems with freemarker templates, encoded in utf-8, which contains characters outside the ascii-range, such as the norwegian letters æ,ø,å. Switching encoding to iso-8859-1 on the template solves the problem, but it would be great having everything in utf-8. Alfresco Share does not seem to have this problem (running in the same Tomcat config), so I assume there is a configuration problem within the wcmqs webapp itself. I would appreciate any advice on this matter.

Alfresco Versjon: 3.4

Thanks.
3 REPLIES 3

bremmington
Champ on-the-rise
Champ on-the-rise
I've not seen this before, but will investigate it further.

bremmington
Champ on-the-rise
Champ on-the-rise
I've managed to reproduce this and have tracked down the cause. It's actually a fault in Spring Surf that's causing the templates to be loaded assuming the platform-default encoding. A fix has been committed to Spring Surf today, and this will make its way into Alfresco 4.0. I will also carry out some tests to see if we can safely bring it into the Alfresco 3.4 stream, but I can't guarantee that, since the impact of the fault is fairly small.

sam1980
Champ in-the-making
Champ in-the-making
Thanks. I appreciate the effort.