wordpress安装过程中遇到中文乱码的处理方法,wordpress中文_PHP教程

WBOY
Release: 2016-07-13 09:56:21
Original
1028 people have browsed it

wordpress安装过程中遇到中文乱码的处理方法,wordpress中文

在安装wordpress的时候,按照里面的readme.html的步骤进行安装,但是在访问wp-admin/install.php的时候就出现了一行乱码:

复制代码 代码如下:鎮ㄧ殑 PHP 浼间箮娌℃湁瀹夎杩愯 WordPress 蹇呴』鐨  MySQL 鎷撳睍銆

从这行乱码中可以看出有PHP、MySql,可以猜测出是连接MySql错误。在仔细检查了wp-config.php中的连接数据库参数后,发现不是参数的错误,那就一定是连接的方式出了问题。

以前我习惯于使用mysqli.dll来连接数据库,那有可能wordpress使用的不是mysqli,而是mysql.dll,所以就尝试在php的ext文件中找到mysql.dll,将它复制到php根目录下,再修改php.ini,将里面的extension=php_mysql.dll的注释取消掉,再重启apache,ok了。

以上所述就是本文的全部内容了,希望大家能够喜欢,能够对大家使用WordPress有所帮助。

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/987897.htmlTechArticlewordpress安装过程中遇到中文乱码的处理方法,wordpress中文 在安装wordpress的时候,按照里面的readme.html的步骤进行安装,但是在访问wp-admin/...
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!