nginx doesn't handle different URL encodings well

Edho P Arief edhoprima at gmail.com
Thu Oct 21 20:45:06 MSD 2010


On Thu, Oct 21, 2010 at 8:57 AM, helen <nginx-forum at nginx.us> wrote:
> On Wed, 20 Oct 2010 21:23:46 -0400, Pierre-Marie Baty  wrote:
>
>> When the URL is Latin-1 encoded, the request sent is : GET
>> /%e9t%e9-2008.jpg ----> nginx resolves this to "été-2008.jpg", the
> file
>> is served, OK
>> When the URL is UTF-8 encoded, the request sent is : GET
>> /%C3%A9t%C3%A9-2008.jpg ----> nginx resolves this to
> "été-2008.jpg",
>> and the file is not served. (file not found)
>

except that it works the exact reverse in my side. Are you sure the
filename for the file in the filesystem stored in utf-8 format?

setting LANG to en_US.UTF-8 may help. (eg. "LANG=en_US.UTF-8 ls" in a
bash shells)

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



More information about the nginx mailing list