后台编码里添加的汉字在页面上显示乱码,求教如何解决?

解决方案 »

  1.   

    在Web.config修改<globalization requestEncoding=" gb2312" responseEncoding="gb2312"/>
      

  2.   

    有一个错误:
    Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.Line 37:            它为成员站点提供单独登录和核心配置文件服务。
    Line 38:     -->
    Line 39:     <authentication mode="Windows" />请教...
      

  3.   

    你的.vb文件是不是用Notepad编写的?是否用utf-8保存的?
      

  4.   

    如果你是用VS编辑器进行编辑的。那么将其保存为utf_8即可!
    如果是用Notepad的话好像就不行
      

  5.   

    完成.多谢各位.
    做法是:将该文件用Notepad打开,再用utf-8保存即可
    结了.