tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Fernández <>
Subject Content-disposition with non-us filename problem: Tomcat 4.1.24 + JK2 2.0.2 + Apache 2
Date Mon, 19 Apr 2004 09:17:30 GMT

I'm trying to http download a file whose name has latin characteres via 
The servlet composes a http request with the header:
Content-disposition: attachment; filename="fileNameWithLatinCharacters"

If the request is dispatched to the browser directly by tomcat, 
fileNameWithLatinCharacters (header and open save box dialog)  is 
correctly formed and displayed.

When the request is dispatched through apache + JK2 2.0.2 , 
fileNameWithLatinCharacters gets malformed.

ISO-8859-1 and es language are configured in apache configuration file,  
and it doesn't have any problems to serve static pages with latin 
characteres. Could it be a JK2 module matter? Is there any 
compilation/configuration option  in JK2 module that addresses this 
problem? Or any other idea?

That's the log:

Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/, application/, 
application/msword, application/x-shockwave-flash, */*
Accept-Language: es
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Connection: Keep-Alive
Cookie: JSESSIONID=017F2165E2CF9F6EDC2F80F023EE709C

Apache + JK2 + Tomcat  response:
HTTP/1.1 200
Date: Fri, 16 Apr 2004 09:56:34 GMT
Server: Apache/2.0.47 (Unix) PHP/4.3.4 mod_jk2/2.0.2 DAV/2
Content-disposition: attachment; filename="IPP_0012ñññáá.GIF"   -> 
*** WRONG filename ***
Content-Type: application/x-download; charset=iso-8859-1
Content-Language: es-ES
Transfer-Encoding: chunked

Standalone Tomcat response:
----------------- -----------
HTTP/1.1 200 OK
Content-disposition: attachment; filename="IPP_0012ñññáá.GIF"   -> *** 
RIGHT filename ***
Content-Type: application/x-download; charset=iso-8859-1
Transfer-Encoding: chunked
Date: Fri, 16 Apr 2004 10:16:19 GMT
Server: Apache Coyote/1.0

Thanks a lot,
best regards


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message