I doesnt work with mod_jk.
I've tried JkOptions like
+ForwardURICompatUnparsed, +ForwardURIEscaped, +ForwardURICompat ...
It's exactly like with mod_jk2: when I go directly to tomcat using
server:8080/something-with-special-characters-like-áéíóúñ the page is fine.
However if I use server/something-with-special-characters-like-áéíóúñ the page
is not correct.
I don't think request.setCharacterEncoding("UTF-8"); could resolve this because
its running fine with only tomcat.
I think its like the redirection apache->tomcat ignored the URIEncoding="UTF-8"
parameter I set in Tomcat Connector. This is my Tomcat connector configuration:
<Connector port="8080"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" URIEncoding="UTF-8"/>
Perhaps I must set URIEncoding other place.
While i was writing this message I tried:
<Connector port="8009"
enableLookups="false" redirectPort="8443" debug="0"
protocol="AJP/1.3" URIEncoding="UTF-8"/>
Now its running fine. Ill post the complete solution
El mar, 28-06-2005 a las 08:32 +0200, Bruno Georges escribió:
> Hi Luis
>
> Why don't you start with mod_jk as opposed to mod_jk2, mod_jk is more
> recent than mod_jk2
> Check the apache httpd.conf for the following directives"
> AddLanguage
> AddDefaultCharset UTF-8
>
> Also make sure use in your servlet/JSP:
> request.setCharacterEncoding("UTF-8");
>
> Bruno Georges
>
> Glencore International AG
> Tel. +41 41 709 3204
> Fax +41 41 709 3000
>
>
> |---------+-------------------------------->
> | | Luis Sánchez Sánchez |
> | | <luis.sanchez.sanchez|
> | | @gmail.com> |
> | | |
> | | 28.06.05 01:44 |
> | | Please respond to |
> | | "Tomcat Users List" |
> | | |
> |---------+-------------------------------->
>
> >--------------------------------------------------------------------------------------------------------------|
> |
> |
> | To: [email protected]
> |
> | cc:
> |
> | Subject: Apache2+JK2+Tomcat-5.028 >> URI UTF-8 problem
> |
> |
> |
> |Distribute:
> |
> |Personal? |-------|
> |
> | | [ ] x |
> |
> | |-------|
> |
> |
> |
>
> >--------------------------------------------------------------------------------------------------------------|
>
>
>
>
> It's about apache-tomcat configuration with
> UTF-8. I added URI encoding to the tomcat configuration and I set
> defaultcharset utf-8
> in apache2. Im using mod_jk2. It doesnt work when I use special
> characters like áéíóúñ...
>
> If I use URL with port 8080 (tomcat
> answers) It's fine but If I use the redirection apache->tomcat it
> doesn't work... Any suggestion?
>
> Thanks
>
> --
> Luis Sánchez Sánchez <[EMAIL PROTECTED]>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> *
> * LEGAL DISCLAIMER
> * This message contains confidential information for
> * the exclusive use of the person mentioned above.
> *
>
>
> ---------------------------------------------------------------------
> 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]