"Ilk biçimi" için bir URL dönüştürmek için PHP fonksiyonunu urlencode
a> kullanabilirsiniz.
Now, for the "why", the answer can probably be found in the RFC 1738 - Uniform Resource Locators (URL).
Bazı paragraf alıntı:
Octets must be encoded if they have no corresponding graphic
character within the US-ASCII coded character set, if the use of the
corresponding character is unsafe, or if the corresponding character
is reserved for some other interpretation within the particular URL
scheme.
No corresponding graphic US-ASCII:
URLs are written only with the graphic printable characters of the
US-ASCII coded character set. The octets 80-FF hexadecimal are not
used in US-ASCII, and the octets 00-1F and 7F hexadecimal represent
control characters; these must be encoded.
Bir uzay kod% 20 var - Biraz sonra, bu aralığın 00-1F değil, bu yüzden bu nedenle kodlanmış olmalıdır ... Ama:
Unsafe:
Characters can be unsafe for a number of reasons. The space
character is unsafe because significant spaces may disappear and
insignificant spaces may be introduced when URLs are transcribed or
typeset or subjected to the treatment of word-processing programs.
Ve burada, sen boşluk karakteri çok kodlanmış / kaçtı zorundadır neden biliyor ;-)