<strong>How to make Tomcat serve text documents with non-Latin1 characters in their names?</strong>
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   baris_aksu
Posted On:   Thursday, August 29, 2002 01:41 AM

Hi all,

I need to have Tomcat serve text documents whose names

include characters of the ISO-8859-9 charset.


When i put such a text document(ending with .txt) in a
directory and browse the directory contents withTomcat,
the document is displayed but after i clickthe link to
browse that document, Tomcat complains that the
requested resource is not available.


How can i work around this?


Any suggestion/help is greatly appreciated...


Baris...

Re: <strong>How to make Tomcat serve text documents with non-Latin1 characters in their names?</strong>

Posted By:   Christopher_Koenigsberg  
Posted On:   Thursday, August 29, 2002 07:36 AM

URL's have to follow the syntax, including the restricted character set, defined in the RFC for them (look it up at http://www.w3c.org). Your operating system may allow local filenames containing characters which are not legal as part of URL's, in which case you will either have to work with URL encoding and decoding (Tomcat would have to know somehow, to decode a URL to get the "real" filename), or else rename them if you want them accessible via Web URL's.

About | Sitemap | Contact