[jQuery] Special characters with ajax.

[jQuery] Special characters with ajax.


Hi, i am new to Jquery.. i have a query here.
let say that i want to pass the variable parameter "parameter" var
$.post.. if i have any special character in the parameter, all the
character after the special character are not been pass..
var parameter = "abcdefg??abcdefg";
$.post('process.php', {'term': parameter}, function(data) {
$('#display).html(data);
});
Is there anyway to solve it?.
Thanks in advance.. =)