07-27-2023, 10:03 AM
We've recently moved a website to a new server, and are running into an odd issue where some uploaded images with unicode characters in the filename are giving us a 404 error.
Via ssh/FTP, we can see that the files are definitely there.
For example:
none of the images are working:
Code:
<img class='image-display' title='' src='http://sjofasting.no/wp/wp-content/uploads/2012/03/ådnøy_1_2.jpg' width='685' height='484'/>
SSH:
> -rw-r--r-- 1 xxxxxxxx xxxxxxxx 836813 Aug 3 16:12 ådnøy_1_2.jpg
What is also strange is that if you navigate to the directory you can even click on the image and it works:
click on 'ådnøy_1_2.jpg' and it works.
Somehow wordpress is generating
>
and copying from the direct folder browse is generating
>
What is going on??
---
edit:
If I copy the image url from the wordpress source I get:
When copied from the apache browser I get:
What could account for this discrepancy between:
%C3%A5 and %cc%8
??
Via ssh/FTP, we can see that the files are definitely there.
For example:
[To see links please register here]
none of the images are working:
Code:
<img class='image-display' title='' src='http://sjofasting.no/wp/wp-content/uploads/2012/03/ådnøy_1_2.jpg' width='685' height='484'/>
SSH:
> -rw-r--r-- 1 xxxxxxxx xxxxxxxx 836813 Aug 3 16:12 ådnøy_1_2.jpg
What is also strange is that if you navigate to the directory you can even click on the image and it works:
[To see links please register here]
click on 'ådnøy_1_2.jpg' and it works.
Somehow wordpress is generating
>
[To see links please register here]
ådnøy_1_2.jpgand copying from the direct folder browse is generating
>
[To see links please register here]
What is going on??
---
edit:
If I copy the image url from the wordpress source I get:
[To see links please register here]
When copied from the apache browser I get:
[To see links please register here]
What could account for this discrepancy between:
%C3%A5 and %cc%8
??