1,phpmyadmin中显示MySQL字符集:UTF-8Unicode(utf8)MySQL连接校对:utf8_general_ci(这个好像不可以改)数据库表:latin1_swedish_ci2,my.ini中default-character-set=utf-8,3,链接...
1, phpmyadmin中显示
MySQL 字符集: UTF-8 Unicode (utf8)
MySQL 连接校对:utf8_general_ci(这个好像不可以改)
数据库 表:latin1_swedish_ci
2,my.ini 中default-character-set=utf-8,
3,链接文件1.asp代码:
无标题文档strconnection="driver={mysql odbc 3.51 driver};database=onlineedit;server=localhost;uid=admin;password="
set adodataconn = server.createobject("adodb.connection")
adodataconn.open strconnection
strquery = "select * from article"
set rs = adodataconn.execute(strquery)
if not rs.bof then
%>
姓名 | 密码 |
do while not rs.eof
%>
rs.movenext
loop
%>
else
response.write("无数据.")
end if
rs.close
adodataconn.close
set adodataconn = nothing
set rsemaildata = nothing
%>
并且用文本打开1.asp,另存了UTF-8模式 ,
结果是依旧读取出来中文是?????
哪位大侠能告诉我,到底还要设置什么东西?给个具体车配置清单
展开