ASP+Access数据库,读出数据显示乱码,在线等解决···
ASP+Access数据库,用DW8做编辑器,网页保存编码为默认(简体中文GB2312),数据库Access2003,编码默认·······测试系统XPSP3+IIS5....
ASP+Access数据库,用DW8做编辑器,网页保存编码为默认(简体中文GB2312),数据库Access2003,编码默认·······测试系统XP SP3 +IIS5.1开始测试的时候很正常,数据读出都没问题······但现在,不知道怎么搞的,数据读出中文时出现乱码,英文和数字显示正常,打开数据库查看数据,一切都正常,没乱码····有人说是编码问题,但是试了一下,还是不能解决,不知道是方法不底还是我自己弄错了,···在此请高手指点····希望从根本上解决问题,整站恢复正常,复制和敷衍的请不要浪费我的时间,小弟感激不尽···!!!下面把其中一个网页和数据库连接页代码发上来:请大家教我怎么改··1.首页部分代码:<%@LANGUAGE="VBSCRIPT"%><!--#include file="Connections/conn.asp" --><%······数据库相关代码(省略)···%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>留心liuxinye.com</title>···································································································································2.数据库连接页代码:<%' FileName="Connection_ado_conn_string.htm"' Type="ADO" ' DesigntimeType="ADO"' HTTP="false"' Catalog=""' Schema=""Dim MM_conn_STRING'MM_conn_STRING = "Driver={Microsoft Access Driver (*.mdb)};DBQ=D:\我的站点\liuxin\data\liuxin.mdb"MM_conn_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.Mappath("../data/liuxin.mdb")%>
展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询