How To Display Chinese Characters Properly With WordPress

If you’re trying to display languages other than English on your WordPress blogs, you may encounter problems displaying them properly. We had some issues come up with clients who wanted to display Chinese characters on their WordPress blogs, but got “???” instead.

chinese character

The way to resolve this has got to do with the following lines in your wp-config.php file. This file is in your WordPress root directory. Just edit it, and look for these lines:

define(’DB_CHARSET’, ‘utf8?);
define(’DB_COLLATE’, ”);

Comment out the lines by adding double slashes to the start of the lines, like this. Commenting simply excludes them, so they’re still there, but aren’t run as part of the code.

// define(’DB_CHARSET’, ‘utf8?);
// define(’DB_COLLATE’, ”);

Once that’s done, you may have to publish your posts again to re-insert them into your database, and you should see your WordPress posts showing Chinese characters properly now.


Senior Tech Writer for Vodien Internet Solutions

Bill Poh is the Senior Tech Writer at Vodien and he covers web hosting, online marketing, social media, business and the latest tech innovations. When not writing, he’s busy pursuing his passion for photography, graphic design, and creative arts.

Here are some of the other pages created by Bill Poh: