JS:
window.location.href=encodeURI(URL?name=中文);
JAVA:
name=new String(name.getBytes("ISO-8859-1"),"UTF-8")
导出文件名
final String userAgent = request.getHeader("USER-AGENT");
if(userAgent!=null&&userAgent.contains("MSIE")){//IE浏览器
fileName = URLEncoder.encode(fileName,"UTF8");
}else if(userAgent!=null&&userAgent.contains("Mozilla")){//google,火狐浏览器
fileName = new String(fileName.getBytes(), "ISO8859-1");
}else{
fileName = URLEncoder.encode(fileName,"UTF8");//其他浏览器
}