AJAX and asp error post with no space

I´m using AJAX with asp. When doing a POST the spaces between words disappear.
Jose BredariolPMPAsked:
Who is Participating?
 
leakim971PluritechnicianCommented:
var words = "this is a word with spaces";
words = encodeURIComponent(words);
// words ready to be  sent now!
0
 
Jose BredariolPMPAuthor Commented:
Thanks
0
 
leakim971PluritechnicianCommented:
why a << B >> grade?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.