response.setContentType("application/octet-stream; charset=utf-8");
fileName = exportDataDto.getFileName();
fileName=fileName + ".xls";
fileName= ServletUtils.getFileName(request,fileName);
if (request.getHeader("User-Agent").toLowerCase().indexOf("firefox") > -1)
{
fileName = new String(fileName.getBytes("UTF-8"),"iso-8859-1");
response.setHeader("Content-Disposition", "attachment; filename=" + fileName);
//System.out.println("firefox");
} else {
response.setHeader("content-disposition", "attachment; filename=" + fileName);
}
outputStream = response.getOutputStream();
workbook.write(outputStream);