What is URL encoding?
URL encoding converts reserved or unsafe characters into percent-encoded values so data can be sent safely as part of a URL or query parameter.
When should you encode a URL?
Encode individual parameter values, search terms and user-provided text before adding them to a URL. Do not encode an entire URL repeatedly.