Supporting special characters in URI for location block

Igor Sysoev igor at sysoev.ru
Fri May 29 09:49:33 UTC 2015


On 29 May 2015, at 10:14, Rv Rv <rvrv7575 at yahoo.com> wrote:

> I have a URI with spanish characters that needs to be handled in location block specific to it e.g. I want to do 
> location <URI with spanish characters> {
> }
> 
> However, nginx does not seem to match URI in location block  with spanish (or any other characters including chinese). Is this functionality supported?
> Thanks


Both URI and configuration should be in UTF-8.
Then

location /año/ {
}

will match

"GET /a%C3%B1o/..."


-- 
Igor Sysoev
http://nginx.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20150529/689ea19e/attachment.html>


More information about the nginx mailing list