标题:网站后台输入中文,网页上显示乱码
只看楼主
lmcrtj
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2011-9-15
结帖率:33.33%
已结贴  问题点数:5 回复次数:3 
网站后台输入中文,网页上显示乱码
我在网站后台输入内容时,一直显示“远程文件收集中”..然后点多几次“入库”会弹出以下窗口

生成的页面中,中文显示乱码或空白,英文和数字显示正常
在另外一台电脑上可以显示正常,是不是我的电脑缺少什么东西啊?
谢谢

补充:每个网页都是这样的
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" type="text/css" />
这个没问题的...

附源码:
<!--#include file="inc/conn.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" type="text/css" />
<title><%=title%></title>
<meta name="keywords" content="<%=keywords%>">
<meta name="description" content="<%=descriptions%>">
<style type="text/css">
<!--
body {
    background-color: #FFFFFF;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
-->
</style>
</head>

<body>
<table width="1007"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="top.asp" --></td>
  </tr>
  <tr>
    <td><br><table width="100%"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="500" valign="top"><div style="margin-top:4px ">
          <table width="98%" border="0" align="center">
            <tr>
              <td width="2%"><img src="images/1.gif" width="6" height="15"></td>
              <td width="98%"> 现在位置是 &gt; <b>科研队伍</b></td>
            </tr>
            <tr>
              <td colspan="2"><br>
                  <br>
                  <%
          set rs=server.CreateObject("adodb.recordset")
      sql="select * from [BigClass] "
      rs.open sql,conn,1,1
      if rs.eof and rs.bof  then
            response.Write("没有分类")
      else
          do while not rs.eof
      %>
                  <table width="939" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="16" height="12" >&nbsp;</td>
                      <td width="627" height="12" ><b><%=rs("BigClassName")%></b></td>
                      <td width="57" background="images/productlist_bg.jpg"></td>
                    </tr>
                    <tr>
                      <td height="11" colspan="3" ><span class="dbt"><img src="images/xian5.gif" width="939"
                  height="7" /></span></td>
                    </tr>
                    <tr>
                      <td colspan="5" td="Td"></td>
                    </tr>
                    <tr >
                      <td colspan="3"><table width="745">
                          <%
            
        set rs1=server.createobject("adodb.recordset")
        sql1="select * from product where BigClassName='" & rs("BigClassName") & "' order by id desc "
        rs1.open sql1,conn,1,1
         if rs1.eof or rs1.bof then
             response.Write("<td align=center height=150>...</td>")
             else
             i=1
            do while not rs1.eof
        %>
              <td width="320"><table width="150" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="150"><table width="142" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                          <tr>
                            <td width="34">&nbsp;</td>
                            <td width="158" ><div align="center"><a href="teamlist.asp?id=<%=rs1("id")%>"><%=rs1("title")%></a></div></td>
                          </tr>
                      </table></td>
                    </tr>
                </table></td>
                  <%if i mod 5 =0 then response.Write("</tr>")
i=i+1
rs1.movenext
loop
end if
rs1.close
        %>
              </tr>
                      </table></td>
                    </tr>
                  </table>
                  <%
      rs.movenext
      loop
      end if
      rs.close
      %>
              </td>
            </tr>
          </table>
          </div></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td><!--#include file="foot.asp" --></td>
  </tr>
</table>
</body>
</html>
<script>
function show(BigClassID)
{
whichEl = eval("hidden"+BigClassID);
if (whichEl.style.display == "none")
{eval("hidden"+BigClassID+".style.display=\"\";");}
else
{eval("hidden"+BigClassID+".style.display=\"none\";");}
}
</script>

[ 本帖最后由 lmcrtj 于 2011-10-8 15:16 编辑 ]
搜索更多相关主题的帖子: 网站 网页 content 台电脑 include 
2011-10-08 10:32
xmlz
Rank: 9Rank: 9Rank: 9
等 级:蜘蛛侠
威 望:5
帖 子:294
专家分:1392
注 册:2010-8-29
得分:3 
字符集不一致

统一设为UTF-8或者GBK
2011-10-08 11:27
lmcrtj
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2011-9-15
得分:0 
回复 2楼 xmlz
怎么设置?在哪里设置?求教...我对这个很白....
2011-10-08 11:56
l65591397
Rank: 1
等 级:新手上路
帖 子:1
专家分:2
注 册:2011-7-7
得分:3 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
一个网站每张网页的这个要统一
2011-10-08 13:50



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-351789-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.725887 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved