asp 读取汉字的文本文件显示乱码

我用asp读取文本文件,内容是汉字时显示乱码,假如是数字或是字母则正确显示,请高手帮帮忙,在线等...
源码如下:
<%
set fso=Server.CreateObject("Scripting.FileSystemObject")
filepath=Server.MapPath("data\message.html")
Set fin=fso.OpenTextFile(filepath,1,True)
Do While not fin.AtEndOfStream
str=fin.ReadLine
if str<>"" then
Response.Write str
Response.Write "<br>"
end if
loop
fin.Close
Set fin=Nothing
Set fso=Nothing
%>

你好!
你所说的题目应该这么修改才可以:
网页头部中加入一句:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
以上仅供参考,谢谢!
温馨提示:内容为网友见解,仅供参考
第1个回答  推荐于2018-04-24
网页头部中加入一句:

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">本回答被提问者和网友采纳
第2个回答  2020-06-24
网页头部中加入一句:
<meta
http-equiv="Content-Type"
content="text/html;
charset=gb2312">
第3个回答  2017-12-17
吕布建设路噜噜噜亏数据库两块五涂涂乐普通噜噜噜噜噜噜5句老婆老婆聚聚
第4个回答  2017-12-17
相似回答