Consider I have compressed data follow :
Ả㠵堥䂢桥ƴېୠ⤡
I am sending these kind of chars by follow through Java script/jquery:
function callServer()
{
var compressed = LZString.compressToUTF16(uncompressed64Data);
jQuery.ajax({
url : "/RegisterServlet_2/servlet/Register",
type : "POST",
dataType: "json",
data: {
img : compressed,
},
cache : false,
async : false,
success : function()
{
},
error : function()
{
}
});
}
While sending this by automatic the data encoded due to special chars and request body look like this : %E1%BA%A2%E3%A0%B5%E5%A0%A5%E4%82%A2%E6%A1%A5%C6%B4%DB%90%E0%AD
My objective is I want to reduce the bandwidth weight, Hence I was used compression algorithm and it was reduced much of chars. (Please note, I am given here is sample but the data I am using is huge!)
Hence I want to send the special chars just as it is without any encode algorithm or even if I allow the chars count size should not increase after encoding? Any help much appreciated. Thanks in advance