sContent.getBytes("ISO8859-1");你试试吧,*_*

解决方案 »

  1.   

    String tempString = new String(sContent.getBytes("ISO8859_1"),"GBK" );prstmt.setString(3,tempString );
      

  2.   

    也可以
    String tempString = new String(sContent.getBytes("ISO8859_1"),"utf-8" );
    String tempString = new String(sContent.getBytes("ISO8859_1"),"big5" );prstmt.setString(3,tempString );
    具体看你的网页和后台服务器用什么编码方式
      

  3.   

    response.setcontentType("text/html;charset=gb2312");
    String tempString = new String(sContent.getBytes("ISO8859_1"),"gb2312" );
    然后在
    prstmt.setString(3,tempString);
      

  4.   

    写个类吧//字符值转换显示汉字
    public String conv(String str)
    {
    try
            {
          byte[] bytesStr=str.getBytes("ISO-8859-1");
              return new String(bytesStr,"gb2312");
            return str;
        }
    catch(Exception ex)
            {
        return str;
            }
    }