URL Encoder-Decoder

The Problem I faced: Yesterday I was going through a CRM Web Api code, there an encoded URL was used that was little difficult to read and understand.

Where did the encoded URL code come from???????  

REST Builder tool -“A code generator that creates JavaScript to perform actions against CRM’s  REST endpoints.”

To know more click here.

MSCRM Developers must be familiar with the REST Builder tool. There is a tab to use predefined query in REST Builder tool. We pass readable fetch Xml code there and when query is built ,we get the code having encoded URL as shown below:


What is URL encoding?Why the URL get encoded ? How the URL get encoded ? Can we encode/decode URL?

Let’s find out the answers

URL encoding  is the practice of translating unsafe characters or characters with special meaning within URLs to a representation that is unambiguous and universally accepted by web browsers and servers.

The characters allowed in a URL are either reserved or unreserved (or a percent character as part of a percent-encoding).

Reserved characters are those characters that sometimes have special meaning, while unreserved characters have no such meaning.

The unreserved characters are:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

a b c d e f g h i j k l m n o p q r s t u v w x y z

0 1 2 3 4 5 6 7 8 9 – _ . ~

The reserved characters are:

! * ‘ ( ) ; : @ & = + $ , / ? % # [ ]

For worldwide interoperability , URL have to be encoded uniformly.Browser converts the entered URL into a format that can be transmitted over the Internet.

Yes, we can encode/decode URL

You can try this tool to perform URL Encoding/Decoding operation.

It has user friendly U.I . Simple to use. Just give Input URL .Click required operation (Encode or Decode) button and get the Output URL. Simple.

Have a look..

You can find the tool on https://sharmapurnima.github.io/URL-Encoder-Decoder/

Keep Exploring..

 

References:

  1. https://en.wikipedia.org/wiki/Percent-encoding
  2. https://perishablepress.com/stop-using-unsafe-characters-in-urls/

Leave a Reply

Your email address will not be published. Required fields are marked *