I’m collecting text through a web form and noticing that when it is collected by my Perl CGI all instances of “+” are transformed into ” “. I run the text through a JavaScript escape before submission, but escape seems to leave + unaltered.
There must be something really obvious that I’m missing… how do I send the string “2 + 2 = 4” through and not have it arrive as “2 2 = 4”?
— https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Predefined_Functions/escape_and_unescape_Functions
Replace
escapewithencodeURIComponent