你用的是sqlserver吧,我也是用5.0.25,在显示的时候经过一次的8859_1——>gb2312转码就能正常显示,你首先查查是不是页面上的微小差别,以后我也碰见过这种问题,就一个页面有乱码,别的页面正常

解决方案 »

  1.   

    我有一个转码函数,将ISO8859-1强奸为GBK
    public  String  getStr(String  str){
      try{String  temp_p=str;
      byte[]  temp_t=temp_p.getBytes("ISO8859-1","GBK");
      String  temp=new  String(temp_t);
      return  temp;
      }
      catch(Exception  e){  }
      return  "NULL";
      }
      

  2.   

    你可以到tomcat配置文件里改一下,在打开数据库时做一下转码
    jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=GB2312"
      

  3.   

    又可能是tomcat的问题
    再我这里使用4.1.27就没有问题
    使用4.1.29中文就是乱码,看来tomcat的版本很不稳定。