在<head>后面加上
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
应该就好了

解决方案 »

  1.   

    <%@ page contentType="text/html;charset=GB2312"%>
      

  2.   

    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
      

  3.   

    bzszp(SongZip): 可以看到 
    我另外写了个java程序读oracle 读出的中文数据是正常的
      

  4.   

    奇怪了,一般用上面的方法就解决了,
    你没去jsp版问问,这方面应该没问题
      

  5.   

    oracle中的中文数据为乱码
    是在什么地方看的
      

  6.   

    在第一行加上<%@page language="java" contentType="text/html; charset=GBK"%>
      

  7.   

    zhenyukeji(何处是我家) :jsp中 ,然后我用out.println 打印也是乱码但我用另外写java代码 print是正常的。
      

  8.   


    <%@ page language="java" contentType="text/html;charset=GB2312"%>
    要使charset与oracle的字符集一致
      

  9.   

    在写入数据库页面调用以下函数:
    <%!
    public static String UnicodeToChinese(String s){
      try{
        if(s==null||s.equals("")) return "";
        String newstring=null;
         newstring=new String(s.getBytes("ISO8859_1"),"gb2312");
        return newstring;
     }
    catch(Exception e)
     {
      return s;
     }
     }
    %>
      

  10.   

    也有可能是oracle的客户端程序受其他软件的影响,字符集出现问题,重装一下oracle的客户端,试试看,我碰到过好几次这种情况,重装客户端就好了!