title: How to print ñ on img source in php
body: <ul>
  <li><p>I have images inside a folder that contains 'ñ' char like <code>Navideño-4.jpg.</code></p></li>
  <li><p>I created a script to print all images but if image has ñ char it just prints  <code>Navide%C3%B1o-4.jpg</code></p></li>
  </ul>
  
  <p>Here is script:</p>
  
  <pre><code>function show($path){
      $files = glob($path.'*');
      natcasesort($files);
      foreach($files as $file) {
              echo ' &lt;br/&gt; &lt;img src="' .  $file . '" /&gt; &lt;br/&gt;';
      }
  }
  </code></pre>
  
  <p>and call it like:</p>
  
  <pre><code>show('images/navidad/');
  </code></pre>
  
  <p>How can I show ñ char inside img source in php, I have tried urlencode,urldecode..
  But had no success</p>