nginx doesn't handle different URL encodings well

Maxim Dounin mdounin at
Thu Oct 21 19:09:18 MSD 2010


On Thu, Oct 21, 2010 at 04:25:52PM +0200, Pierre-Marie Baty wrote:


> Yes, it makes sense. But shouldn't nginx assume a UTF-8 encoding 
> instead of assuming a Latin-1 one ? Since in the future all URI 
> will adopt this encoding method. IMO a request like GET 
> /%C3A9t%C3A9-2008.jpg should translate to /été-2008.jpg - and 
> not the other way around, like it's the case currently.
> Currently nginx assumes URLs are encoded in Latin1, whereas it 
> should assume they're UTF-8 first. Don't you think ?

nginx doesn't assume anything, it just passes bytes it got in 
request to filesystem.

Maxim Dounin

More information about the nginx mailing list