在Wordpress中无法正确显示UTF8字符

时间:2012-06-13 23:08:38

标签: mysql wordpress unicode utf-8 character-encoding

我的想法用完了 - Wordpress拒绝正确保存UTF-8编码的字符: http://www.letosanezkou.com/

您可以看到,当我直接在MySQl数据库中编辑帖子内容时,它可以正常工作。我已经验证了mysql db:

mysql  Ver 14.14 Distrib 5.5.24, for Linux (i686) using readline 5.1
Connection id:          2120
Current database:       leto_wp1
SSL:                    Not in use
Current pager:          stdout
Using outfile:          ''
Using delimiter:        ;
Server version:         5.5.24-cll MySQL Community Server (GPL)
Protocol version:       10
Connection:             Localhost via UNIX socket
Server characterset:    utf8
Db     characterset:    utf8
Client characterset:    utf8
Conn.  characterset:    utf8

并且我的wp-config具有默认的UTF-8行:

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

当我尝试更新帖子时,这是在phpmyadmin中编辑的,它会错误地保存帖子。

有关如何解决此问题的任何想法吗?

0 个答案:

没有答案