> I'm using $("form").serialize(), and then doing an AJAX request.
>
> JQuery automatically replaces spaces with the + character.
>
> How can I keep my spaces?
>
> (I couple replace the + character with a space on the server side, but
> I want the users to be able to enter the + character when they submit
> forms.)

The serialize function properly encodes data per the HTML spec.  Don't
worry about users entering +, those characters will be encoded too (to
%2B).  The decoding takes place on the server.

Mike

Reply via email to