不编码,传递汉字回有问题
<a href="file.jsp?file=<%=java.net.URLEncoder.encode("Weblogic Process Integration 技术概要.doc")%>" >url</a>

解决方案 »

  1.   

    yanchang(笨笨) 
    我用你的方法,可以在URLDecoder.decode(request.getParameter("file"))时出现了乱码呀?
      

  2.   

    1 不用decode,直接接收
    2 如在不行就new String(str.getBytes("iso-8859-1"),"gbk")转码试试在win2000,solaris,linux不同的 操作系统上,可能会有不同的结果
      

  3.   

    "http://xxxxxx/file.jsp?file="+URLEncoder.encode("Weblogic Process Integration 技术概要.doc");
    request.getParameter("file");执行这句时已经Decode了。不用再Decode.