tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shahar Cohen" <Shahar.Co...@888holdings.com>
Subject RE: tomcat 5.5 Unicode issues!
Date Wed, 20 Aug 2008 15:07:54 GMT
Changing the URIEncoding="UTF-8" just worked.
thanks

-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: Wednesday, August 20, 2008 5:29 PM
To: Tomcat Users List
Subject: Re: tomcat 5.5 Unicode issues!

Shahar Cohen wrote:
> Hi,
> Well I didn’t quite understand you all the way but trying to use your example lats
say I have a file named Hello%20There.html when I try to access this file I get 404.
> Probably because the tomcat recognize the character % as illegitimate.
> So is there a way to tell tomcat that special characters like % â €™ will be parsed
correctly if its not Unicode issue that what can it be?

You need to escape the %

The url for that file, assuming it was located in the ROOT context would be:

http://host:port/Hello%2520There.html

> Thanks in advanced

If your file names are UTF-8 encoded then you should be using
URIEncoding="UTF-8" on your connector.

Mark


---------------------------------------------------------------------
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
View raw message