1.首先在Jsp页面中
<h>文件下载列表</h>
<%request.setCharacterEncoding("UTF-8");%>
<a href = 'servlet/DownloadServlet?filename=科研立项流程.doc'>科研立项流程</a>
<a href = 'servlet/DownloadServlet?filename=数据库表.docx'>数据库表</a>
<a href = 'servlet/DownloadServlet?filename=大学生科研立项申请书_最终版.doc'>申请书</a>
2.在对应的servlet页面中接受参数时
request.setCharacterEncoding("UTF-8");
String filename=request.getParameter("filename");
filename= new String(filename.getBytes("ISO-8859-1"),"utf-8");
OK啦,这样就不会出现乱码啦,嘻嘻!!