<span style="font-family:arial,sans-serif;font-size:13px">Hello list,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I got an issue with a filename containing "strange" characters.</div>
<div style="font-family:arial,sans-serif;font-size:13px">It seems that nginx is not able to url_decode correctly, and then get the right file.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Yes, the filename is ugly : "Capture d’écran 2010-09-25 à 08.30.07.png"</div><div style="font-family:arial,sans-serif;font-size:13px">but apache is able to read it, and nginx is not :</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">nginx strace :</div><div style="font-family:arial,sans-serif;font-size:13px">open("/<path>/images/Capture%20d%E2%80%99%C3%A9cran%202010-09-25%20%C3%A0%2008.30.07.png", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or directory)</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">apache strace :</div><div style="font-family:arial,sans-serif;font-size:13px">open("/<path>/images/Capture d\342\200\231\303\251cran 2010-09-25 \303\240 08.30.07.png", O_RDONLY|O_CLOEXEC) = 100</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">So it seems that nginx is using the url_encoded version of the filename, while apache do it's own thing on it.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">On both apache and nginx, the access log says : "GET /images/Capture%20d%E2%80%99%C3%A9cran%202010-09-25%20%C3%A0%2008.30.07.png"</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">both server have the same locales settings, and I tried different charset configuration into nginx, but no luck..</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Any idea how I can fix that without changing the filename (sadly, it's not possible :/) ?</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Thanks</div><div class="" style="margin:2px 0px 0px;font-family:arial,sans-serif;font-size:13px">
<div id=":1o5" class="" tabindex="0"><img class="" src="https://mail.google.com/mail/u/0/images/cleardot.gif">Nilshar</div></div>