select mechname from v_driveinit  Where ipconfig = '172.16.0.198' 
mechname 在postgre 数据库中查出 后显示正常的中文,但是,在web页面上却是乱码,请高手指点

解决方案 »

  1.   

    有没有加这个<meta http-equiv="Content-Type" content="text/html; charset=gb2312">.
        [align=center]====  ====
    [/align]
    .
    贴子分数<20:对自已的问题不予重视。
    贴子大量未结:对别人的回答不予尊重。
    .
      

  2.   

    en 有 我在程序里已经 进行了过滤。request.setcontenttype("gb2312");
    叶面上也 设置了 中文编码格式
    恩,然后我又试着将数据库 的编码格式改为 enc-uc 便可乐
    还要请问一下,我想把整个postgre 数据库 导出,然后倒入到另一台机器上 该怎么做? 多谢
      

  3.   

    Keep the character set between web pages and database the same.The database's character set can be retrieved from \encoding statement within psql environment.
      

  4.   

    导出可以用pg_dump
    导入可以用psql
      

  5.   

    建议将数据库设置为UTF8的