URL Encode / Decode
Percent-encoding for safe URLs, query parameters, and form values.
When do I need URL encoding?
Read more on Wikipedia
Whenever you put arbitrary text in a URL.
URLs are restricted to a subset of ASCII characters. Anything else — spaces, accented letters, query-string special characters like & or = — needs percent-encoding (a.k.a. URL encoding).
Example: hello world becomes hello%20world.