VS写的Web程序只能用IE进行调试,运行。
用火狐和其它的浏览器就会乱码
是不是设置的不对?

解决方案 »

  1.   

    乱码,是编码格式不对么,改下火狐浏览编码试试UTF-8或gb2312
      

  2.   

    打开火狐,查看》字符编码》Unicode(UTF-8)
      

  3.   

    charset= "utf-8"调试的话用firebug
      

  4.   

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="test._Default" %>是这一句用火狐调试的时候会显示成这样:
    Drco�

    �;HTTP/1.1 200 OK
    Server: ASP.NET Development Server/9.0.0.0
    Date: Fri, 23 Dec 2011 08:17:26 GMT
    X-AspNet-Version: 2.0.50727
    Cache-Control: private
    Content-Type: text/html; charset=utf-8
    Content-Length: 15572
    Connection: Close
      

  5.   

    看来没有和我一样情况的人了
    不是不可以调用火狐运行,而是调用后的页面一定会是这样
    Drco鸇

    �jHTTP/1.1 200 OK
    Server: ASP.NET Development Server/9.0.0.0
    Date: Sat, 24 Dec 2011 03:39:00 GMT
    X-AspNet-Version: 2.0.50727
    Cache-Control: private
    Content-Type: text/html; charset=utf-8
    Content-Length: 485
    Connection: Close<!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><title></title></head>
    <body>
        <form name="form1" method="post" action="main.aspx" id="form1">
    <div>
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE2MTY2ODcyMjlkZFeORSr3LhDBOEJhvtQsY4LlN2ba" />
    </div>    <div>
        
        </div>
        </form>
    </body>
    </html>
      

  6.   

    你firefox的编码规则不对吧?
    设置一下utf-8或gb2312