日期:2014-05-17  浏览次数:21071 次

asp插入中文到oracle是乱码
用pl/sql插入中文到oracle正常,而用asp插入时是乱码,可是若用asp读之前通过pl/sql插入的数据时能正常显示汉字。asp代码如下:
 thename = "还好"
  strSql = "insert into afk1(name) values('"&thename&"')"
  set insertRs = oracleConn.execute(strSql)

谢谢帮忙!

------解决方案--------------------
首页要查一下编码方式,出现乱码可能是当前页面编码方式不对造成的。
------解决方案--------------------
http://topic.csdn.net/t/20031222/18/2591128.html
------解决方案--------------------
有可能是你网页的编码和数据库的编码不一致导致的