Suppose one URL encodes a string.
urlencode(String1); => Becomes String2
Does successive url encoding on String2 create a string that is different from String 2?
meaning, urlencode(String2) == String2 ?
urlencode(String2) != String2 ?
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.
It certainly does create a different string, if the original string contained any non-alpha and non-
-_character.So, if the first
urlencodeencodes even one non-space, it will put a%in the resulting string as part of a%XXpattern. Subsequenturlencodes will re-encode that%(and start mangling your original string beyond recognition).See it in action.