Call Us : +91-8376986802 (Viber, WhatsApp)

decodeURI(), encodeURI()

Many characters cannot be sent in a URL, but must be converted to their hex encoding. These functions are used to convert an entire URI (a superset of URL) to and from a format that can be sent via a URI.

var uri = “ Taleyarkhan”
document.write(“Original uri: “+uri);
encoded: “+encodeURI(uri));

Leave a Reply