首页加一句:
<%@ page contentType="text/html;charset=GB2312" %>

解决方案 »

  1.   

    看清楚是数据库数据的问题还是网页页面显示的问题
    建议用UTF_8格式传递数据即可
    可以在数据库中设置默认为UTF。。
    如果是页面显示问题,则<%@ page contentType="text/html;charset=GB2312" %>
    即可
      

  2.   

    http://community.csdn.net/Expert/topic/3582/3582938.xml?temp=8.356875E-02
      

  3.   

    new String(desc.getBytes("iso8859-1"),"gb2312")
    <%@ page contentType="text/html; charset=utf-8" %>你想怎么转自己试试啊,还有GBK什么统统试试,
    呵呵,有时候是挺麻烦的
      

  4.   

    同 robber(海盗)~
    如果还不行,自己写个方法转下
      

  5.   

    给你个函数:
    public String getStr(String str){
        try{
            String temp_p=str;
            byte[] temp_t=temp_p.getBytes("ISO8859-1");
            String temp=new String(temp_t);
            return temp;
        }
        catch(Exception e){}
        return "null";
    }
    首先在页面里加入<%@ page contentType="text/html;charset=GB2312" %>这个方法适合于用request对象获得的参数,在页面里直接赋值不能用这个方法。