URL encoding serves the purpose of replacing these non-conforming characters with a % symbol followed by two hexadecimal digits that represent the ASCII code of the character. Characters must be encoded if: They have no corresponding character within the standard ASCII character set.