I am trying to create an HTML link to a web page hosted on an Apache server that contains umlauts (in my test case it is ä.html
).
So I tried the following in HTML:
<a href='ä.html'>ä.html</a>
<a href='ä.html'>&auml;.html</a>
<a href='%C3%A4.html'>%C3%A4.html</a>
and
<a href='%E4.html'>%E4.html</a>
Only the last link fetched the page I intended. The other links gave me a 404.
Of course, I'd rather go with the first two options. Is there a way to configure a directory directive such that this is possible?
Unfortunately, I have no admin rights on the server. I can only change the .htaccess
in the directory.
utf8_decode
filenames forfile_get_contents
to work?