URLEncode encoding and decoding, convert the characters to be transcoded into hexadecimal, then take 4 bits from right to left (less than 4 bits are processed directly), make one bit every 2 bits, add% in front, and encode into% XY format. It is applicable to the encoding of uniform resource identifier (URI). It is also used to prepare data for "application / x-www-form-urlencoded" mime, and then submit HTML form data through HTTP request.
URLEncode encoding and decoding tool, providing online URLEncode encoding and decoding function.
- encodeURI and encodeURIComponent adopt UTF-8 character set by default
- encodeURI exclude the following characters A-Z a-z 0-9 ; , / ? : @ & = + $ - _ . ! ~ * ' ( ) #
- encodeURIComponent exclude the following characters A-Z a-z 0-9 - _ . ! ~ * ' ( )