WordPress TAGs with Chinese characters-Problem &Solution

I was building a Chinese website with WordPress for a Log wood processing factory in Guangdong Foshan. However I found tagging a post with Chinese characters when writing a post will automatically create the slug like this:
%E6%97%A5%E6%9C%AC%E6%9C%A8%E5%B1%8B, which it means 日本木屋 (Japanese wooden houses)

When click the tag cloud widget, the link will be like this:

And my browser always error out as bellow:

Bad Request

Your browser sent a request that this server could not understand.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

I guess it could be a server side custom error. As many other Chinese WordPress bloggers seems to have the same issue, while most of them get 404 page not found error by WordPress instead of a 403 error.

My hosting suggested to set character set in MySQL database via phpMyAdmin tool. However it seems does not help.

I tried googling and found several blog posts recommend to change the classes.php file under wp-includes folder and use the UTF-8 and GBK encoding. However it does not work for me either, maybe they are talking different WordPress Chinese versions as I can’t locate this file under the specific directory.

Bellow is the workaround works for the Log wood processing factory in Guangdong Foshan website which rans on linux server.

1. open file wp-includes/rewrite.php, do not use Dreamweaver to open and edit it. Use a text editor instead.

2. browse to code as bellow:

function get_tag_permastruct() {

there will be a code line several lines bellow it as bellow:

if (empty($this->permalink_structure)) {

3. change above the code from

if (empty($this->permalink_structure)) {


if (!empty($this->permalink_structure)) {

However this solution is not perfect, as it broke the permant link structure of the chinese wordpress blog post.

WordPress TAGs with Chinese characters-Problem &Solution
0 votes, 0.00 avg. rating (0% score)

You may also like...

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>