Hond4 wrote:
> I have fllowing problem with my Struts app on Jboss. Here is my filter
>     String defaultEncode = "UTF-8";
>         HttpServletRequest req = (HttpServletRequest) request;
>         HttpServletResponse res = (HttpServletResponse) response;
>         req.setCharacterEncoding(defaultEncode);

>From setCharacterEncoding JavaDoc:
"Overrides the name of the character encoding used in the *body* of this
request."

The GET parameters are in the URL query string (not the body of the
request). TO tell tomcat they are encoded in UTF-8, in your
tomcat/conf/server.xml file, look for <Connector> tags and add this
attribute: URIEncoding="UTF-8".

E.g. <Connector port="8009" enableLookups="true" redirectPort="8443"
protocol="AJP/1.3" URIEncoding="UTF-8" />



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to