Re: [INTERNALS-WIN] Question about using UTF-8 encoding for server variables used by PHP

[email protected] (Stanislav Malyshev)
Newsgroups php.internals.win
Organization Zend Technologies
Message-ID <[email protected]>
Hi!

> If url contains non-ascii characters, e.g.
> http://mysite.com/2009/10/русские-символ, then this URL results in
> 404 in WordPress. WordPress uses REQUEST_URI server variable to get
> the originally requested URL. Over HTTP the non-english characters
> come as URL encoded, but IIS internally converts them to unicode.
> Then FastCGI module converts it back to ANSI before passing them to
> PHP.

I think having REQUEST_URI in some salvageable form is better than 
getting ???'s. Also, REQUEST_URI probably won't be used by the engine 
directly for filename access, though may be used by application - like 
MVC frameworks which route actions depending on REQUEST_URL.
IIRC PHP uses only SCRIPT_FILENAME and PATH_TRANSLATED from the request 
for filesystem access, the rest is stored but not used to find the script.
-- 
Stanislav Malyshev, Zend Software Architect
[email protected]   http://www.zend.com/
(408)253-8829   MSN: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.