apache url / filename with special characters

I have this url:

http://domain.com/wp-content/uploads/2012/10/Hvilke-vilkår-følger-med-når-du-bestiller-nyt-bredbånd.png

If I ftp/ssh or just browse to that folder (apache index feature), I see the file

Hvilke-vilkår-følger-med-når-du-bestiller-nyt-bredbånd.png

If I click on the link from the apache index, I can see the file, however, if I copy the URL and try to browse to it directly, I get the error:

The requested URL /wp-content/uploads/2012/10/Hvilke-vilkår-følger-med-når-du-bestiller-nyt-bredbånd.png was not found on this server.

Also my error log says:

File does not exist: /wp-content/uploads/2012/10/Hvilke-vilk\xc3\xa5r-f\xc3\xb8lger-med-n\xc3\xa5r-du-bestiller-nyt-bredb\xc3\xa5nd.png


Solution 1:

You probably need to normalize the encoding of the filenames to Unicode NFC form. See the related StackOverflow question 12643402. One tool you could use is convmv, which should be available in CentOS.