apache2/mod_jk/tomcat4 - file download / special characters in filename

2004-03-03 Thread Andreas Hartstack
Problem: In my tomcat webapp a servlet manages a filedownload. Clicking on a file-link results in the browser's save as dialog. Using tomcat alone (port 8080) everything works fine. Special characters (like German umlaut) are shown in ISO-8859-1. Apache2/mod_jk seems to change the charset to

Re: apache2/mod_jk/tomcat4 - file download / special characters in filename

2004-03-03 Thread John Sidney-Woollett
try converting the filename to ISO-8859-1 as well eg filename = new String(file.getName(), ISO-8859-1); Your Code (modified): response.setHeader(Content-Disposition, attachment; filename= + new String(file.getName(), ISO-8859-1)); response.setContentLength((int)file.length());