How to prevent IIS 7 to partially decode REQUEST_URI?

view story

http://serverfault.com РI have IIS 7 on Windows Server 2008, with PHP support (5.3.15) I have noticed a difference compared to an Apache 2 environment, with the content of PHP variable $_SERVER['REQUEST_URI']. Basically, on Apache we get exactly the same content as in the requested URL, but with IIS the URL seems already partially decoded ("+" signs instead of spaces are unchanged, but %XX characters get already decoded in REQUEST_URI when not in query string part). Examples: Given URL my.server.com/index.php/test%E9+test, $_SERVER['REQUEST_URI'] contains: index.php/testé+test on IIS <=== I would like this (HowTos)