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
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());