I have acquainted myself with the concept of percent encoding of URLs. Now I'm trying to use it in my HTML.
Say I have a HTML document named 한국 (Korean) which corresponds to the following percentage encoding: %ED%95%9C%EA%B5%AD.
My question is how to create a working link with that. Until now, I only had to deal with href in which only ASCII characters appeared, like so:
<a href="example.php">한국</a>
However, if I change this to either of the following
<a href="%ED%95%9C%EA%B5%AD.php">한국</a>
<a href="한국.php">한국</a>
with the target file named equally (i. e. %ED%95%9C%EA%B5%AD in the first case and 한국 in the second case), I get a 404 in the former and a PHP error message that the file was not found in the latter. The version with the actual Korean was just for testing purposes, I didn't expect that to work.
What am I doing wrong? I know that modern browsers convert this encoding to the actual UTF-8 characters, so I thought I could simply replace the corresponding part in the href and give the targer file the same name, but this does not work.