Skip to content Skip to sidebar Skip to footer

Easy understanding of url encoding

URL encoding banner example

Perhaps every website administrator already knows a lot about what url encoding is. This is a text character from the URL that is encrypted (encrypted) with another number in the form of a percentage (%) at the beginning. In fact, not only can URLs be encoded, but plain text like URLs can also be encrypted.

The most common type of url encoding is usually a page for Forwarding URL, referrer URL, return URL, and so forth. And there are also those that make it as encryption for HTML content that was developed with unescape Javascript.

Of course, this URL-Encode has a decoding, which means that it can return the encrypted URL in its original form. An example of url encoding is something like the character place will be changed to % 20, Signature Syringes will be changed to % 2F, and other. To find out all of the codes go to http://www.w3schools.com/tags/ref_urlencode.asp

here function from multiple programming languages ​​to make it easier to encode URLs and other characters. See below!

VBScript
Encode: Escape (string)
Decode: unescape (string)

Point net
Encode: HttpUtility.UrlEncode
Decode: HttpUtility.UrlDecode

Java
Encode: java.net.URLEncode.encode (string)

JavaScript
Encode: escape (string)
Decode: unescape (string)

PHP
Encode: Url code (string)
Decode: Url code (string)

ASP
Encode: Server.URLEncode (string)

Pearl
Encode: uri_escape
Decode: uri_unescape

There are some who cannot change all of the characters applied with functions as in PHP Url code (), can’t encrypt numbers and numbers, so it’s just a URL. While in javascript using the function escape() cannot encrypt spaces and splash characters either.
Maybe that’s all I can share, if you have any questions please comment.

Hopefully useful and good luck