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:
http://mucaichang.com/tag/%E6%97%A5%E6%9C%AC%E6%9C%A8%E5%B1%8B/

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)) {

to

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)

Related posts:

  1. install Google analytics on wordpress how to install google analytics on wordpress blog...
  2. WordPress Says NO to Flash Do you have Trouble embedding flash in wordpress.com blogs? It seems that Wordpress.com did everything to prevent flash. Wordpress.com filters out any flash embed and object tags or other 'unwanted' code....
  3. Microsoft Access Denied Alerts Microsoft Access Denied Alerts: ...
  4. Add Flash Animation to Yahoo Sitebuilder Site Steps to make flash photo slideshow for yahoo sitebuilder and embed Flash Animation to Yahoo Sitebuilder Site....
  5. Flash 8 Professional Error “Unexpected file format” Flash 8 Professional Error "Unexpected file format", Unexpected File Format Error In Flash 8 Pro when trying to open .FLA source file. The reason and solution....