IIRC there is a way to configure encoding inside freemarker.properties. >From the struts side there is also a struts.i18n.encoding properties which might be useful.
Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin :http://www.linkedin.com/in/mauriziocucchiara Maurizio Cucchiara On 29 June 2012 12:35, Sathish Kumar <sathishkumar.thiyagara...@gmail.com>wrote: > Hi, > > In our struts 2 project, we support Chinese language. While we save Chinese > text in forms we see junk characters getting saved. > > While investigating, we found this link > > http://www.mkyong.com/struts2/struts-2-chinese-localization-issue/ > > As per this, > > At the top of the JSP Page, we need to include > > *<%@ page contentType=”text/html;charset=UTF-8″ %>* > > Now the issue is, it is only possible with JSP pages. But in our case, we > use free marker as our result type. > > What is the coresponding freemarker sysntax for the above JSP code? > > Any help here will be greatly helpful to us !! > > Regards, > Sathish Kumar T >