wordpress中文问题
wordpress中文问题

wordpress中文问题

http://gqshen.com/archive/193

1. Run SQL query

show variables like '%character%';

to check the character sets of the database. If the character_set_database is latin1, change it to utf8 by

alter database mydb character set utf8;

where mydb is the name of the database.
2. Edit wp-config.php, change the line

define('DB_CHARSET', 'utf8');

to

define('DB_CHARSET', '');

Leave a Reply

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

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.