I am looking to double escape a url string in java. I don’t know what is meant by double escaping a url. I also request some one to post sample java code that I can use to do this.
thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The simple answer is by escaping it, and then escaping it a second time.
Assuming that “escaping” really means URL encoding, then:
However, the correct solution is probably more complicated than that … depending on what you are going to do with the result. For instance, if you URL encode a complete URL string (once or twice), it is no longer a valid URL.
If you took the time to explain the context, we’d be in a better position to give you a solution that might actually work for you.