byte[] temp_t=temp_p.getBytes("ISO8859-1");
String temp=new String(temp_t,"gb2312");

解决方案 »

  1.   

    不行
    我用的struts框架,在action里面的到的打印出来就是“??”,再存入库里面就是乱码了
    !!!
    为了实现国际化,我的jsp页面
    开头是<%@ page contentType="text/html; charset=UTF-8" %>请各位大虾帮助
      

  2.   

    http://community.csdn.net/Expert/topic/3384/3384597.xml?temp=.6685144
      

  3.   

    byte[] temp_t=temp_p.getBytes("ISO8859-1");
    String temp=new String(temp_t,"gb2312");
    就是这个