在页面上加上这句:request.setCharacterEncoding("gb2312")

解决方案 »

  1.   

    那往里面存的时候,是不是也要在页面上加上request.setCharacterEncoding("iso8859_1")呀?不然我看我的数据库里面只是存了些问号!
      

  2.   

    getPara=new String((request.getParameter("zuozhemingcheng")).trim().getBytes("ISO8859_1"));然后将数据插入数据库就行了
      

  3.   

    <%@ page contentType="text/html; charset=gb2312" %>
    JSP页面开头加!
      

  4.   

    正确的方法是<%@  page  contentType=  "text/html;  charset=8859_1"  %  >  
      

  5.   

    http://expert.csdn.net/Expert/topic/2231/2231845.xml?temp=.8173639看看吧!