Freemarker Encoding issue

Zhiqiang Huang <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi, there

I'm new to freemarker and I'm using freemarker with servlet. I'm coming
across a encoding issue.
If I put chinese in .ftl, it can be output correctly. But when I put chinese
in data-model (a hashmap), it can't. The Chinese characters are output as
'?'.
I have tried all the setxxxEncoding methods to set the encoding to "utf-8"
and failed.
Could anyone help me? Thank you very much!

Best wishes,
hzqtc

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.