struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurizio Cucchiara <>
Subject Re: utf8 problems...
Date Sun, 13 Nov 2011 17:31:27 GMT
Hi Christian,
I have been using SM in production environments for a long time now.
AFAIK 3.x is fairly stable though is still alpha.
The encoding issues are my nightmare  :), you don't never know where
they come from.
The default encoding of S2 is UTF8, anyway to enforce the concept you
could always do:

<constant name="struts.i18n.encoding" value="UTF-8"/> (struts.xml)

<parser content-type="text/html;charset=UTF-8"
class="com.opensymphony.module.sitemesh.parser.HTMLPageParser" />

I usually start from a very simple example, then go ahead (does your
data display correctly without SM?).
How did you import your data inside mysql?

Ensure that your data was encoded correctly inside the DB itself:
select hex(field) from Table where condition;
As last option you can even consider a Character Encoding Servlet
Filter, but to be frank I never felt the need to use it.

Twitter     :
G+          :
Linkedin    :

Maurizio Cucchiara

On 13 November 2011 17:35, Christian Grobmeier <> wrote:
> Hi guys,
> I am searching for a utf-8 problem in my app. I have struts 2 with
> sitemesh 2.x bundled. backoffice is apache cayenne which connects to
> mysql with:
> &useUnicode=true&characterEncoding=utf8
> Now I suspect sitemesh somehow. Any ideas were I could look appreciated
> Is sitemesh still recommended btw? 2.x version is pretty old and 3.x
> is in alpha for quite a while.
> Cheers
> Christian
> --
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message