Thanks for the suggestion.  However, it didn't make any difference.  I also 
tried adding useBodyEncodingForURI="true"; again, no difference.

-----Original Message-----
From: Martin Benda [mailto:[EMAIL PROTECTED] 
Sent: Saturday, November 12, 2005 5:40 AM
To: Tomcat Users List
Subject: Re: Internationalization question

Hi!

Try to add URIEncoding="UTF-8" attribute to the Connector tag in your 
server.xml.

Regards,
Bendis

Dne so 12. listopadu 2005 02:36 Scott Smith napsal(a):
> I'm using Tomcat 4.1.29 on Windows.  I have a context setup which contains
> some image files (simple jpgs).  In the conf/server.xml file, the context
> looks something like:
>
>
>
> <context path="photos" docBase="c:\photodirectory" debug="0"
> privileged="true" />
>
>
>
> Some of the filenames in this directory have non-English characters (e.g.,
> ESPAÑA.jpg).
>
>
>
> For the associated website, I have some html pages which refer to these
> photos using an image tag that looks something like:
>
>
>
> <img src=http://myhost/photos/ESPAÑA.jpg ...
>
>
>
> The problem is that the photos with non-English characters aren't being
> displayed (it appears that Tomcat is unable to find them).  I thought URL
> Encoding the filename would fix the problem, but it doesn't.  Some of my
> experiments indicate that the browser (at least IE) will URL encode it
> anyway as it makes the request.  The html pages are being sent to the
> browser as utf-8.
>
>
>
> As a test, I hardcoded the picture to be ESPANA.jpg in the html page and
> changed the filename in the file system.  Everything worked fine.  Photos
> that don't have non-English characters also work fine.  Unfortunately, the
> photos are constantly changing and so I don't have the option of simply
> renaming the files unless I find a way to do it that can automatically be
> applied to future files as well as the current ones.
>
>
>
> My suspicion is that Tomcat isn't URL decoding the filename.
>
>
>
> Does anyone have any insight into this problem or suggestions about the
> best way to fix the problem?
>
>
>
> Scott

---------------------------------------------------------------------
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]

Reply via email to