Right, hence my last comment in the second paragraph... Incidentally, I
saw that web page yesterday and was the one who added the anonymous
posting about the URIEncoding attribute not appearing to do anything.
What about the use of a filter to set the character encoding? Is this
the only way to go for Struts?
--adam
Martin Gainty wrote:
Adam-
remember the URI_Encoding for your mod_jk connector
http://confluence.atlassian.com/display/DOC/Configuring+Tomcat's+URI+encodin
g
M--
----- Original Message -----
From: "Adam Gordon" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Tuesday, November 27, 2007 6:09 PM
Subject: Configuring Struts to use UTF-8 character encoding
Anyone know if there's a configuration parameter somewhere in Struts
1.2.9 that configures the requests to use UTF-8 character encoding?
Everything I've found on the web says that Tomcat uses ISO-8859-1 as the
default character encoding and that the "fix" is to add a filter that
simply sets the character encoding on every request and it works, but it
seems a bit heavy-handed. Reading the Tomcat configuration pages (for
5.5) talks about setting the URIEncoding attribute on the Connector
element but that doesn't appear to have any effect in my sandbox
application. It's possible it's needed for when running Tomcat behind
Apache.
What about adding the afore mentioned code to our webapp's action
servlet or is this basically a glorified filter in the case where a
webapp is really only using Struts - which our webapp is?
Thoughts?
--adam
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]