我用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
%>