what is URL Decode and Encode ? Explain itAsk Questions

 Posted on 08/08/2018

Explain URL Decode and Encode.

how it's use with Ex. 

how to use in java-script ?

Share On: facebook gplus twitter
profile
Asked by hardik chaudhary on 08/08/2018 Score: 429 points
Add Comment:

Comments

1 Answers

1 Corrected Answers
Aproved Answers
4
Profile
Answered by Haresh Chaudhari on 8/8/2018 8:16:47 PM Score: 344 points

Encoding is technique where you can replace non-printable characters with other special meaning characters into url which server or browser can understand it easily and represent required action into web pages. This type of characters are generally used for any output control, they are likely ASCII characters.

URL encode your data in a hassle-free way, or decode it into human-readable format. URL encoding, also known as percent-encoding, is a mechanism for encoding information in a Uniform Resource Identifier (URI) under certain circumstances.

var Url = "https://stoodQ.com/products.aspx?keywords=clothes&brand=LeeCooper";
var UrlEncoding = encodeURIComponent(Url);
var UrlDecoding= decodeURIComponent(UrlEncoding);
var Output = UrlEncoding+ "<br>" + UrlDecoding;

Hope this helps.

Comments

Add Comment:

Post Your Answers

Existing Members

Sign in to your account
Email Address
Password
New Member?
Sign up and complete profile
Full Name
Email Address
I have read and agree to the Terms of Service and Privacy Policy
Please subscribe me to the StoodQ newsletters
Guideline to answer a question:

Useful tips to submit your answer
Please read below guidelines before you submit your answer for question.

  • Read and understand question for which you are submitting your answer.
  • Try to avoid grammatical and spell mistake while answering.
  • Do not post any irrelevant information in your answer.
  • Explain your answer with example or any reference link to help who posted question.
  • If you find irrelevant question, please report it to support. Click here to contact support.
  • You agree to the privacy policy and terms of use to submit any contents.

Note: StoodQ is online developers community which helps developer for their difficulty, lets help them with your value contribution.