I'm trying to http download a file whose name has latin characteres via servlet.
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:
-------------
Request:
--------
GET /webmail/attachment?¤twindow=1&instance=foo&session_id=017F2165E2CF9F6EDC2F80F023EE709C&msgId=<[EMAIL PROTECTED]>&msgNum=1&webmail_folder=INBOX&filename=IPP_0012ñññáá.GIF&contentType=image/gif HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, 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)
Host: des.correonotarial.org
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
Carlos
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]