Home  >  Article  >  Backend Development  >  ajax乱码有关问题

ajax乱码有关问题

WBOY
WBOYOriginal
2016-06-13 13:32:26974browse

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>
Statement:
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