tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artur Jonak" <Artur.Jo...@empolis.pl>
Subject Tomcat 4.0 and UTF-8
Date Thu, 27 Jun 2002 12:37:38 GMT
Hi,
I'm using Tomcat 4.0 and I have some problems with requests
containing UTF-8 characters.
I have my servlet named 'delta' which is properly deployed and running.
When I try to invoke it in the following way:
http://myserver:8080/delta/Test/%D0%AE%D1%80%D0%B8%D0%B9%20%D0%9A%D0%BE%D0%B
2%D0%B0%D0%BB%D1%91%D0%B2.doc

where
/Test/%D0%AE%D1%80%D0%B8%D0%B9%20%D0%9A%D0%BE%D0%B2%D0%B0%D0%BB%D1%91%D0%B2_
doc

is a path to the resource in my repository,
in my servlet I try to obtain that path using method:

request.getPathInfo()

The string which I got from this method is illegible.
I've tried to decode it with URLDecoder, tried to use something like this:

path = new String(path.toByteArray("iso-8859-1"),"UTF-8");

but nothing works :(
Please note that it works with Tomcat 3.2.2...
What should I do?

Please help,
Artur

____________________________________________

Pozdrawiam,
AJ

<mailto:Artur.Jonak@empolis.pl>
____________________________________________


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message