I'd like to encode downloadable file name. I want to set file name with polish letters like ą ę ć ż ź. This is my code:
response.setHeader("Content-disposition", "attachment; filename=" + URLEncoder.encode("ŻżŹźĄą", 'UTF-8'))
It works on Chrome but MozillaFirefox shows it not correctly.
How to set encoding properly?