String filepath ="E:/你好.doc"; 
改为英文看看?

解决方案 »

  1.   

    将filename转化编码再传递给下面的函数! 
    response.setHeader("Content-Disposition", 
           "attachment; filename=\"" + filename + "\""); 
           
      

  2.   

    在前面加上下面代码试试:            try{
                    request.setCharacterEncoding("GB2312");
                }catch(Exception e) { System.out.println(e.getMessage()); }
      

  3.   

    在前面加上下面代码试试:            try{
                    request.setCharacterEncoding("GB2312");
                }catch(Exception e) { System.out.println(e.getMessage()); }
      

  4.   

    加上下面的代码试试。
                try{
                    request.setCharacterEncoding("GB2312");
                }catch(Exception e) { System.out.println(e.getMessage()); }