为什么显示为乱码

ronanlin 2004-02-09 11:05:15
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="gb/Connections/Connection.asp"-->
<%
Set fs = CreateObject("Scripting.FileSystemObject")
Set rTitle = fs.OpenTextFile(server.mappath("manage/Ad/Title.txt"))
eTitle = rTitle.ReadLine
Set rTitle = Nothing
Set fs = Nothing
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=eTitle%></title>
<link href="gb/Styles/StyleSheet.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100" height="100" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><img src="Images/ad.jpg" width="482" height="312"> </td>
</tr>
</table>
</body>
</html>

以上是窗体的代码,服务器是新加坡的,应该是英文版本的操作系统。
为什么<title><%=eTitle%></title>显示的内容是乱码。
请问应该如何解决?多谢指点!
...全文
40 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧