servlet中文乱码问题,设置头文件编码信息解决
在servlet中添加如下代码
resp.setHeader("Content-Disposition", "attachment; filename="+ URLEncoder.encode(filename,"utf-8"));
在servlet中添加如下代码
resp.setHeader("Content-Disposition", "attachment; filename="+ URLEncoder.encode(filename,"utf-8"));