problem with text field in $.ajax POST

problem with text field in $.ajax POST




Goodmorning everyone
In the form I have also, "input text" and "textarea " .
The problem is that the text is always changed with the elimination of the spaces between the characters !
Example if i insert in the text and in the textarea the text: " a b c ... "  the text that is received in the page URL will be defined as " abc ... " (without spaces !) .
If I try to enter " a& nbsp ; b
& nbsp ; c ... " is sent ( and received ) is only "a" (all characters after the first char "a " is deleted !!!!)
This is a piece of code of function:

function Get(value1, text2, textarea3 ) {
        var value1 = $("#" + value1).val();
        var text2 = $("#" + text2).val();
        var textarea3 = $("#" + textarea3).val();

        $.ajax({
                type: "POST",
                url: "update.asp",
                data: "value1=" + value1 + "&text2=" + text2 + "&textarea3=" + textarea3,
                dataType: 'html',
                success: function (msg) {
                    ....
                },
                error: function () {
                    .....
                }
            });

    }

Do you have any idea or suggestion ?
thanks in advance