cancel
Showing results for 
Search instead for 
Did you mean: 

Multilingual content not rendering corretly using ftl

sefkan3
Champ in-the-making
Champ in-the-making
We have a problem rendering Japanese content using a freemarker ftl template. All the Japanese chars come out with ? chars. We are using community edition 3.3g.

We imported Japanese content into our avm store using web scripts and are able to edit it using the associated web form. When the form opens, the Japanese chars are showing correctly so the XML has the right content but when we render the html output using  freemarker template, we have the problem with the chars.

We also tried including encoding tag in the ftl to indicate utf-8 but to no avail.

Do we have to make any configuration changes to make this work?

Thanks in advance,
Seth
1 REPLY 1

sefkan3
Champ in-the-making
Champ in-the-making
Found the solution after digging around the forums:

To make this work, add the following to the java alfresco startup script in the java args :
-Dfile.encoding=UTF-8

Also in the ftl file, add the following to the ftl tag
<#ftl encoding="utf-8" ns_prefixes={"D":"http://www.yourdomain.com"}>

Regards
Seth
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.