ajax乱码有关问题

WBOY
Release: 2016-06-13 10:21:30
Original
822 people have browsed it

ajax乱码问题
参考一个ajax分页的代码,由于要连接sql server2000,把原代码的utf8改为gb2312,结果点击上一页下一页出现乱码,数据库已经默认是gb2312_chinese_ci了
代码如下:

php代码:

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><title>PHP+ajax分页演示</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><script language="javascript" src="ajaxpage.js"></script><div id="result"></div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template