Re: Make JForum Portlet site aware
| Newsgroups | gmane.comp.cms.jahia.devel |
|---|---|
| Message-ID | <OF3A348D15.2939D948-ONC1256FF0.0033E9B7-C1256FF0.003F852D@commaro.com> |
Hi Daniel!
In fact we had some problems with our german "Umlaute" -- öüäß :-) -- and
we are using Oracle as DB. For UTF-8 I have changed:
\JForumWebApp\WEB-INF\config\SystemGlobal.properties
# Page encoding
encoding=UTF-8
In Method net.jforum.JForum.service(HttpServletRequest req,
HttpServletResponse response)
a) set request encoding
req.setCharacterEncoding("utf-8");
b) change the line
out = new BufferedWriter(new
OutputStreamWriter(response.getOutputStream(), encoding));
to
out = new BufferedWriter(new
OutputStreamWriter(response.getOutputStream()));
Although the correct encoding was passed to OutPutStreamWriter constructur,
leaving this parameter did work better.
I think that was all..
_____
kind regards
wilhelm