I have converted UTF 16 to UTF 8 (method used : toUTF8Array)codes in javascript and sent the code from ajax call(note : UTF 16 chars is ugly and it needed encoding which I dont want!) Js code :
var compressed = LZString.compressToUTF16(uncompressed64Data);
var utf8values = toUTF8Array(compressed);
jQuery.ajax({
data :"img=+" utf8values
}
I have received the UTF 8 codes in java server side as follow :
String utf8values = request.getParameter("img");
fyi, outcome of sop: utf8values : 225,186,162,227,160,181,229,160,165
Now I want change the codes into actual UTF 16 string?
Thanks in advance!
"225,186,162,227,160,181,229,160,165"The actual string you have?Ả㠵堥?img, are you trying to send image data to the backend?