在VS2005中做好的见面可以VS中正确的看到汉字,可在浏览器中查看时
却不能正常显示汉字,全是乱码.  而从数据库中调出的汉字却可以正常显示,
请问一下,这是什么原因? 怎样解决了? 急....

解决方案 »

  1.   


        <globalization requestEncoding="gb2312" responseEncoding="gb2312"/>试试
      

  2.   

    好象还是不行.
    我是在Dreamweaver中做的界面,再到VS中修改的了.
    前几天都可以,不知道动了哪里就成现在这个样子了.
     
    看下一部分代码:<%@ Page Language="VB" AutoEventWireup="false" CodeFile="BooksList.aspx.vb" Inherits="GUI_BooksList" %>
    <%@ Register TagPrefix="WebUserControl" TagName="Header" Src="_header.ascx" %>
    <%@ Register TagPrefix="WebUserControl" TagName="Bottomer" Src="_bottomer.ascx" %>
    <%@ Register TagPrefix="WebUserControl" TagName="Menu" Src="_Menu.ascx" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="Head1" runat="server">
        <title>商品列表</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    </head>
    <body>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <form id="form1" runat="server">
      

  3.   


      哎,解决了.高手,  
     原来的代码为:<globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8"/>
     郁闷啊,这门语言还没有入门就叫做项目..连这些基础的都不知道.
      
      谢谢两位.