Are we able remove completely all kind of encoding/default encoding on jquery ajax call ? Fyr, javascript code :
function callServer()
{
debugger;
var uncompressed64Data = "/9j/4AAQSkZJRgABAQEAYABgAAD/2wCEAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4pLSwzOko+MzZGNy"
alert(uncompressed64Data.length);
var compressed = LZString.compressToUTF16(uncompressed64Data);
//alert('compressed Length : ' + compressed.length);
var pCurrentPage = 'Prabhu';
/* var formData = "img="+compressed+"&CurrentPage="+pCurrentPage.toString(); */
jQuery.ajax({
url : "/RegisterServlet_2/servlet/Register",
type : "POST",
contentType : "application/x-www-form-urlencoded;charset=ISO-8859-15",
data : {
img : compressed,
CurrentPage : pCurrentPage,
},
cache : false,
async : false,
success : function()
{
},
error : function()
{
}
});
}
Fyr, above call I make and I can able to see the request body always encoded. As per application I dont want encoding and the chars should reach the server without any encoding?
Thanks in advance!