rewrite utf8 : why lower case

optimum.dulopin at laposte.net optimum.dulopin at laposte.net
Sun Jun 2 13:33:34 UTC 2013


Hi

I have some routes that was previously with uppercase for language and now I want lowrcase. here is a route : /Ka/განცხადებები that should simply become /ka/განცხადებები

in my conf if ($uri ~ ^/K(.+)){ set $bb $1; rewrite ^(.*)$ $scheme://$host/k$bb permanent; }

and I cant understand why but /ka/%E1%83%92%E1%83%90%E1%83%9C%E1%83%AA%E1%83%AE%E1%83%90%E1%83%93%E1%83%94%E1%83%91%E1%83%94%E1%83%91%E1%83%98/

become

/ka/%e1%83%92%e1%83%90%e1%83%9c%e1%83%aa%e1%83%ae%e1%83%90%e1%83%93%e1%83%94%e1%83%91%e1%83%94%e1%83%91%e1%83%98

ie all uppercase letter become lowercase, that cause à pb with my rails app.

does anyone know why nginx do this ? and is it possible to block this ?

I can't just uppercase everything as there is some latin letter and my routes are case sensitive

thanks


Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net



More information about the nginx mailing list