Hi,
If nothing is specified, Tomcat uses the host's default encoding, for
example Cp1252.
If so, strings received by Tomcat are supposed to be in Cp1252
If you encodeURI, your strings are in UTF-8
Just add an attribute URIEncoding to the Connector in Tomcat's server.xml
<Connector URIEncoding="UTF-8" port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
This should fix the problem
On 11/28/06, km < [EMAIL PROTECTED]> wrote:
Hello
I have a problem when I encode special characters and empty spaces. I use
encodeURI. Have someone used it? Can someone help me? I use cocoon2.1 and
tomcat.
Thanks
Kris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]