Is there a way to prevent AJAX from encoding an already encoded value when passing it through data? I'm facing this issue where my value gets further encoded. Any solutions?
This is the AJAX code I'm using:
$.ajax({
url: form.attr("action"),
data: {
'at': ajax_params['at'],
},
type: form.attr("method"),
success: function (data) {
alert('Success');
}
});
The value in ajax_params['at'] = 2%2C+4
In this value, 2 and 4 represent numbers, %2C represents a comma, and + represents a space. The value can contain multiple commas.
After submitting with AJAX, the current output becomes:
at=2%252C%2B4
The expected output should be:
at=2%2C+4