忘了跟大家说了,我用的access2000中文版,里面的中文数据是我用access添加的

解决方案 »

  1.   

    new String(str.getBytes("ISO-8859-1"))就好~
      

  2.   

    怎么实现基于jsp+oracle的网上投票程序,给小弟说说思想.http://expert.csdn.net/Expert/topic/3043/3043882.xml?temp=.8626673谢谢拉
      

  3.   

    写一个公共函数  public String toChinese(String p_strString)
      {
        String strSelect = "";
        try
        {
          strSelect = new String(p_strString.getBytes("ISO8859-1"),"GBK");
        }
        catch(Exception e)
        {
          System.out.println("component.publicMethod error begin ...");
          System.out.println(e.toString());
          System.out.println("component.publicMethod error end");
        }
        return strSelect;
      }
    然后只要从数据库中读中文时调用就行了