看一下下面这个链接
Servlet中文乱码解决

解决方案 »

  1.   

    页面用utf-8
    提交后setCharacterEncoding(“utf-8
    ”);
      

  2.   

    method="get" 换成post方式提交试试
      

  3.   

    这种中文乱码问题,在java web开发中,很普便,因为要涉及很多的编码问题,比如JSP编码,Servlet编码,Web 服务器编码等,只要解决了就行了。
    可以用以下方法:
    在Servler页面:
    String usernametemp =request.getParameter("username");   //得到注册页面传递过来的参数(乱码)
    String username= new String(usernametemp.getBytes("ISO-8859-1"),"GBK");//对乱码进行处理
      

  4.   

    页面编码格式设置成UTF-8
    <%@ page language="java" contentType="text/html; charset=GBK" import="com.bjsxt.Shopping.*"
      pageEncoding="utf-8"%>
      

  5.   

    你要用post的提交的方法,设置的编码才有效。
      

  6.   

    1.form表单里action方法应该为post。
    2.response.setContentType("text/html;charset=gbk");
         PrintWriter is=response.getWriter();
         is.print(addr);
       必须在response也设置编码格式否则selevlet引擎去response对象拿数据时将会以默认的ios-8859-1编码格式
    将会出现乱码。
      

  7.   

     method="get"  换位 method="post"看看!