title: URLs with file names having accented characters
body: <p>In one of my PHP based websites, I have a script which will display an image from a CentOS server. Image path is taken from MySQL database. Image files stored on the server (and corresponding entries in the database) are having accented characters and spaces in it.</p>
  
  <p>So when the PHP script tries to access the image URL, it returns a file not found error. When I checked apache error logs, I could see that the accented characters in file names are shown like "2-EDUCACI\xc3\x93N SECUNDARIA-ACTIVIDAD ACAD\xc3\x89MICA-VIAJE FIN DE CURSO (1).jpg" (an example of image name "2-EDUCACIÓN SECUNDARIA-ACTIVIDAD ACADÉMICA-VIAJE FIN DE CURSO (1).jpg")</p>
  
  <p>If I try to get file listing through shell with real file name given inside quotes, I can get the listing.  But if I try without giving any file name, the list is shown with ? marks instead of accented characters in file names.</p>
  
  <p>Can you please give me some guidance on solving this file not found issue.  I am looking for a solution involving either changing something in PHP code, or in the server itself? I have root access to the server.</p>
  
  <p>I already came across some similar questions and answers on web, but those are referring to changing the encoding of file name on server (like using utilities like convmv, etc). But in my case, I am not in a position to change the file names or encoding. These files are uploaded by customers from their local system and thus I cannot insist them to use a specific naming convention or file name encoding. What I am looking for is a possibility to attain this through some PHP functions, or apache configurations.</p>
  
  <p>Any inputs regarding this is highly appreciated.</p>
  
  <p>Thanks &amp; Regards</p>
  
  <p>Sujith</p>