International characters and serving files

David Connors david at connors.com
Sat Feb 10 05:14:02 UTC 2024


Hi All,

I have moved off IIS/WIndows onto nginx on ubuntu a while back. Since doing
so I receive 404s for files with international characters in their name.
I've added the charset utf-8 directive to the nginx config. Looking at the
request:

https://www.davidconnors.com/wp-content/uploads/2022/08/Aliinale-Für-Alina.pdf

Confirm that is exists on the file exist on the filesystem:

-rwx------  1 www-data www-data 10560787 Aug 21  2022 Aliinale-Für-Alina.pdf

if I copy that from that name to a.pdf and request that it serves fine.

Access log shows the character with the diacritic mark is escaped:
172.68.210.38 - - [10/Feb/2024:05:11:27 +0000] "GET
/wp-content/uploads/2022/08/Aliinale-F%C3%BCr-Alina.pdf HTTP/1.1" 404 27524
"-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15
(KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"

What confirmation directive am I missing?

TIA,
David.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20240210/4ab6dfd7/attachment.htm>


More information about the nginx mailing list