将sql server中的中文换成英文就可以了。

解决方案 »

  1.   

    to:Mrs2002(我是海) 
       你是说把我的SQL Server2000换成英文版的吗?
       我谢先~
      

  2.   

    我觉得没有必要将sql server中的中文换成英文吧,其实你只要将转吗的方法些进去就行了。
    如果没有记错的话,对于静态转吗应该用:
    <%@page contentType="text/html;charset=gb2313"%>
    如果是动态传输数据转吗,估计你的用:
     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";
    }
    可以试试
    祝你好运!!
      

  3.   

    通过对字符串编码应该没问题,我的mysql中文问题就是这样解决的
    String temp_p=str;
    byte[] temp_t=temp_p.getBytes("ISO8859-1");
    String temp=new String(temp_t);
      

  4.   

    我用的系统是linux,无论怎么试,输入进去sql Server数据库的都是乱码啊,怎么办?(我在win2000下输入进去经过转内码以后输入进数据库的就是正确的中文)