Although i encode the plus sign to %2B, the server reads it as space.
I send the request using javascript XMLHttpRequest.
Why it happens?
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.
Encoding/Decoding is not a fancy thing. The fundamentals are simple. Thus as long as you encode/decode via a single algorithm, then you have to get to the original text.
Maybe something is wrong in your decoding algorithm.
I recommend that you install Fiddler, and see what goes out of your client computer. You might also log the very first arrival of the request by your web server to see what you get there.