Black Friday Deals Not Found Anywhere Else! Save up to 55% OFF Hosting, Domains, Pro Services, and more.
Vodien Black Friday Sale applies to new purchase on select products and plans until 4 December 2024. Cannot be used in conjunction with other discounts, offers, or promotions.
Microsoft-Top-SMB-Cloud-Master-for-March-2017-img

by

May 4, 2010

Cloud Computing, Enterprise Cloud Technology < 1 min read

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.


[template id="7325"]

Skip to section