wordpress中文乱码问题解决

困扰了将近两周的问题基本解决,感谢论坛的blogzcb朋友,方法如下:

打开wp-config.php文件
查找如下代码:
define(‘DB_CHARSET’, ‘utf8′);
删掉uft8
define(‘DB_CHARSET’, ”);

目前我测试了新安装的wordpress2.2,这样修改后,中文显示就没有问题了,不过如果原来已经写了的中文帖子还是乱码。

相关内容

This entry was posted in wordpress and tagged . Bookmark the permalink.

8 Responses to wordpress中文乱码问题解决

  1. leolee says:

    数据库是否为utf-8码?
    导出数据时是否选择了utf-8码?

  2. wingfish says:

    数据库市utf-8的,但是只要发post中文就乱码。我始终怀疑虚拟主机供应商那里也有点问题,之前wp2.1.2还是很好的,升级到wp2.2就开始有这个问题了。

  3. Dashanban says:

    非常感谢!我就是重装过之后就出现乱码,问了很多人都不知道。现在轻松解决!

  4. wingfish says:

    好,解决了就好.

  5. Pingback: 升級Wordpress 2.5 RC1 at Blueteeth|Blog

  6. Pingback: Geeky Derek » Blog Archive » wordpress中文乱码问题解决

  7. Pingback: wordpress中文乱码问题解决 - Geeky Derek

  8. Pingback: [转载]wordpress中文乱码问题解决 « 驻足点

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">