struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manos Batsis <manos_li...@geekologue.com>
Subject Re: Request Encoding
Date Mon, 15 Mar 2010 10:20:00 GMT
Ulf Liedén wrote:
> when my struts application receives form entries containing french character
> (i.e. é è) they are converted to something else, like é è.
> 
> This has probably something to do with how the request is encoded. I've
> tried to add
> 
> ServletActionContext.getRequest().setCharacterEncoding("UTF-8");
> 
> to the action class validate() method, and
> 
> <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
> 
> to the JSP, but this doesn't help. Any suggestions?


If you are using Tomcat, you need to update $CATALINA_HOME/conf/server.xml

More specifically, you need to add the

URIEncoding="UTF-8"

to the Connector element for port 80 or 8080.

Cheers,

Manos

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message