tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pulkit Singhal" <pulkitsing...@gmail.com>
Subject Re: URIEncoding
Date Thu, 26 Jul 2007 13:13:36 GMT
Hi Frederic,

I don't know about HttpSession.<method> for settign the URIEncoding.
But you could always do somethign along the lines of:
String uri_utf8 = new String (uri.getBytes("iso-8859-1"), "UTF-8");
inside the application.

On 7/26/07, Frederic Bastian <Frederic.Bastian@unil.ch> wrote:
>
> Hi folks :)
>
>
> I need my URI to be in UTF-8. In server.xml, I added to the Connector
> the attribut : URIEncoding="UTF-8"
> This works well. But my question is :
>
> Is there a way to define the URIEncoding in the application itself ?
>
> For instance, you can modify the session timeout in the application
> itself (HttpSession.setMaxInactiveInterval()). I would like to modify
> the URIEncoding by the same way.
>
> Would anyone know how to achieve that ?
> Thanks.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message