Thank you,
I add DefaultEncoding setting to FreeMarkerServlet and the problem is
solved.

On May 17, 6:50 pm, akochnev <akoch...@gmail.com> wrote:
> Freemarker has a way to specify the encoding of the files that you're
> dealing with. Look at freemarker.template.Configuration, more
> specifically :
>
>         fmConfiguration.setDefaultEncoding("UTF-8");
>         fmConfiguration.setLocale(Locale.US);
>         fmConfiguration.clearEncodingMap();
>
> You can use the methods above to explicitly provide the encoding of
> your templates . If you don't , it probably uses a default encoding
> map, and possibly the platform encoding. Thus, if your development
> (e.g. Windows) and deployment (GAE, Linux ? ) have different default
> encodings, your templates will not be rendered properly.
>
> Regards,
>
> Alex Kotchnev
>
> On May 17, 7:38 am, Phuong Nguyen <phuongn...@gmail.com> wrote:
>
>
>
> > I use Eclipse, which default encoding for text file is set to UTF-8.
> > By the way, it runs fine on client, problems only when being deployed
> > to the cloud.
>
> > On May 17, 5:41 pm, Pieter Coucke <pieter.cou...@onthoo.com> wrote:
>
> > > Have you tried saving your template files in UTF-8?
> > > You can use Notepad++ for this.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Google App Engine for Java" group.
> > > To post to this group, send email to 
> > > google-appengine-j...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > google-appengine-java+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/google-appengine-java?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine for Java" group.
> > To post to this group, send email to google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine-java+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to