asp中文乱码
数据库是access的。里边name,no student表。 两个都文本属性。 name如果有中文就是乱码<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Session.CodePage=65001%>
<!--#include file="conn.asp"-->
<%
set rs=server.CreateObject("adodb.recordset")
sqlstr="select * from student" rs.open sqlstr,conn,1,1
rs.movefirst
response.write ("<table>")
while not rs.eof
response.write ("<tr><td>")
'response.write (rs("sname"))
response.write rs(0)
response.write ("</td></tr>")
rs.movenext
wend
response.write ("</table>")
rs.close
conn.close
set rs=nothing
set conn=nothing %>
Web.rar
(666.31 KB)