求助:asp中调用include语句后字体显示异常?
在asp中,用include引用foot.asp后,显示字体(汉字)为小方框,疑字体设置问题,但此时,foot.asp中的英文正常,从数据库中读取的汉字也正常,如果不使用include语句,直接将foot.asp中内容复制到文件中,则一切正常。如果将前面文件中“ charset=utf-8"”这行代码删除,则引用中的汉字显示正常,但其它部分的汉字又变成了乱码。代码及错误图片如下:temp.asp内容:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<HTML>
<HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" />
<META NAME="copyright" CONTENT="Copyright 2006-2010 - />
<META NAME="Author" CONTENT="迅易技术支持---www. />
<META NAME="Keywords" CONTENT="<% =Keywords %>" />
<META NAME="Description" CONTENT="<% =Descriptions %>" />
<TITLE><%=SiteTitle %></TITLE>
</HEAD>
<BODY>
.........
<!--#include file="Foot.asp"-->
<%
response.Write "<TABLE border=0 cellSpacing=0 cellPadding=0 width=1003 background=images/bg_bottom.gif align=center height=105>"
response.Write "<TBODY> <TR>"
response.Write " <TD align=middle>版权所有:"& SiteTitle &" CopyRight 2002-2012 "& IcpNumber & "<BR>"
response.Write "地址:"& Address&" 电话:"&Telephone&" 传真:"&Fax&" 邮编:"&ZipCode
response.Write "</TD></TR></TBODY></TABLE>"
%>
</body></html>
foot.asp中内容如下:
<%
response.Write "<TABLE border=0 cellSpacing=0 cellPadding=0 width=1003 background=images/bg_bottom.gif align=center height=105>"
response.Write "<TBODY> <TR>"
response.Write " <TD align=middle>版权所有:"& SiteTitle &" CopyRight 2002-2012 "& IcpNumber & "<BR>"
response.Write "地址:"& Address&" 电话:"&Telephone&" 传真:"&Fax&" 邮编:"&ZipCode
response.Write "</TD></TR></TBODY></TABLE>"
%>
结果显示如下: