When i download the file (pdf
/xls
/text
) file from portal, the file name is not showing properly in IE
and working fine in other browsers
if(((String) requestKeys.getSessionAttribute(EnumParameterNames.USER_AGENT)).contains("MSIE")){
fileName = URLEncoder.encode(fileName, "UTF-8"); // it results filename mL_úPDF_20150210185915.pdf
} else {
fileName = "=?UTF-8?B?" + new String(Base64.encodeBase64(fileName.getBytes("UTF-8")), "UTF-8") + "?="; // working fine for all browsers
}
I have used Content-Disposition also and but getting same error
response.setHeader("Content-Disposition","attachment; filename="+fileName);
please suggest and thanks for the help!