把输出表头改一下
response.setContentType("text/html; charset=gb2312");

解决方案 »

  1.   

    试试:
    Class URLEncoder
    java.lang.Object
      |
      +--java.net.URLEncoderstatic String encode(String s) 
              Translates a string into x-www-form-urlencoded format.
      

  2.   

    没有,好像少这一句
    new String(rs.getString(i).getBytes(),"GB2312");但总说i应该是int,换成1也一样
      

  3.   

    实际上还是少中文字符的转换,在向ORACLE中存取汉字时,可以这样转换一下:
    String str="中国";
    String str2=new String(str.getBytes("iso-8859-1"));
    向数据库中存入时用str2就可以了;