struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Lindholm <greg.lindh...@gmail.com>
Subject Re: problem with encoding of parameters, type="redirect"
Date Tue, 15 Sep 2009 15:51:19 GMT
If
If you are using Tomcat as a server then you will need to add
URIEncoding="UTF-8" attribute to the Connector in the server.xml file, If
not specified, ISO-8859-1 will be used [1].

This URIEncoding attribute applies only to GET requests (not POST).

[1] http://tomcat.apache.org/tomcat-5.5-doc/config/http.html


On Tue, Sep 15, 2009 at 11:41 AM, Tommy Pham <tommyhp2@yahoo.com> wrote:

> ----- Original Message ----
> > From: Francisco Barroso (Fortes Informática) <
> franciscobarroso@grupofortes.com.br>
> > To: user@struts.apache.org
> > Sent: Tuesday, September 15, 2009 8:29:56 AM
> > Subject: problem with encoding of parameters, type="redirect"
> >
> > I just migrated my application from ISO8859-1 to UTF-8.
> > I have a problem with encoding of parameters. There is an error passing a
> > parameter from xwork to an action using redirect:
> > ...
> >
> > type="redirect">& lt;/result>
> > ...
> >
> > If the parameter name has an special character (such as José), in the
> action it
> > comes with invalid characters (Jos?).
> >
> > Any idea?
> >
> > -- Francisco Barroso
> > Desenvolvedor
> > Fortes Informática (Fortaleza)
> > Fone: (85) 4005.1111 - Cel: (85) 8843.8309
> > franciscobarroso@grupofortes.com.br
> > www.fortesinformatica.com.br
> >
>
> Did you change/set the struts.i8n.encoding in struts.xml/properties?  I
> don't remember off the top of my head what the default is.
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message