Question

Filenames UTF-8

  • Posted April 6, 2014

Hi,

I need help because the files named in UTF-8 are not being displayed in the browser.

example: http://107.170.35.246/wp-content/uploads/2013/03/Aplicativo-auxilia-a-alfabetização-de-crianças-_corpo-150x150.jpg

Working example: http://institutoparamitas.org.br/wp-content/uploads/2013/03/Aplicativo-auxilia-a-alfabetização-de-crianças-_corpo-150x150.jpg

It is the same image with the same name but are not being displayed.

How to make apache able to display images with names in utf-8?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi! <br>I have the same problem, but I´m unable to fix it uploading again the files with a utf8 ftp. <br> <br>For example: <br>http://95.85.13.136/fotos/2014/04/Almenas-en-el-techo-Visita-a-la-torre-Bellesguard-o-Casa-Figueres-Gaudí-en-Barcelona-Cataluña-España-by-machbel.jpg <br> <br>give error 404, but file exists exactly in server. <br>access.log say: <br> <br>[14/Apr/2014:13:04:40 +0200] “GET /fotos/2014/04/Almenas-en-el-techo-Visita-a-la-torre-Bellesguard-o-Casa-Figueres-Gaud%c3%ad-en-Barcelona-Catalu%c3%b1a-Espa%c3%b1a-by-machbel.jpg HTTP/1.1” 404 342 “http://95.85.13.136/fotos/2014/04/” “Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0” <br> <br>So, there is any way to fix this? <br>Server is Debian7 with apache. <br> <br> <br>

Hello, <br> <br>Thanks Tony Tsang and Meletis Flevarakis by return. <br> <br>The problem was solved, it was a problem with uploading files. <br> <br>The solution was to delete and upload the files again. <br> <br>=)

I have no problem of getting a 200 response with the mentioned URLs <br> <br>curl -i -X HEAD http://institutoparamitas.org.br/wp-content/uploads/2013/03/Aplicativo-auxilia-a-alfabetização-de-crianças-_corpo-150x150.jpg <br> <br>Since RFC 3986 2.3 only allow a-z, A-Z, 0-9, -, ., _ & ~, http://tools.ietf.org/html/rfc3986#section-2.3 <br> <br>It is to better to encode the URL before using it as the image src. <br> <br>Using any character other than the defined reserved & unreserved character is not reliable, up to the user agent to handle.

I have the same problem with Greek. I dont think its possible to fix it. Most websites are using codes to display the name