Wordpress is ignoring Unicode Chars in URL Wordpress is ignoring Unicode Chars in URL wordpress wordpress

Wordpress is ignoring Unicode Chars in URL


For an overview of the problem, review:

http://ruslany.net/2010/03/important-update-for-iis-7-0-fastcgi-module/

this refers you to the now outdated:

http://ruslany.net/2010/02/fastcgi-module-differences-across-iis-versions/

My own situation was fixed by applying Win 7 SP1 but, interestingly, I was still left with applying the registry hack that is described in the Hotfix:

http://support.microsoft.com/kb/2277918


I am running WAMP server on local machine. I tested $_SERVER['PATH_INFO'] on my IIS7 web server and found that it has some unicode problem. Wordpress uses path_info to handle urls.I created a file test.php with following code:

If I request http://example.com/test.php/कुछशब्द/कुछऔरशब्द/english

then I get this output

----****----

/???????/?????????/english----****----path_info is converting unicode hindi chars to ?????.That means there is some problem in path_info variable in my server.Do you know any setting IIS7 that can cause such type of problem?

The same code works perfectly fine on my local Apache Windows server.


The KB article provides a hotfix which didn't work for my windows version and/or code to use using Start > Run which also wasn't effective and didn't add the registry key for some reason in my case on Windows 7 Ultimate and IIS 7.5.7600

reg add HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\w3svc\Parameters /v FastCGIUtf8ServerVariables /t REG_MULTI_SZ /d REQUEST_URI\0PATH_INFO

I had to do one of the following choices:

1) Add the Reg. Key manually under HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\w3svc\Parameters by adding new Multi-string value >> Value Name : FastCGIUtf8ServerVariables Value Data (two lines): REQUEST_URIPATH_INFO

2 ) Execute the code using cmd.exe as an administrator then paste the code and excute

In both ways remember to execute the iisreset command on cmd.exe as administrator after the previous step.