Url encoding replaces unsafe ascii characters with a % followed by two hexadecimal digits. For an application to safely transfer content between the server and client, some characters must be encoded to ensure they do not impact the protocol To preserve the integrity of the communications, url encoding is used. The urlencode method applies url encoding rules to a specified string Let uri = my test.asp?name=ståle&car=saab Let encoded = encodeuri (uri)
The enctype attribute can be used only if method=post. Definition and usage the encode() method encodes the string, using the specified encoding Character encoding can be studied in our character set tutorial
WATCH