I am submitting data with jquery ajax and receiving wrong characters on the server when using language other then English. For instance Russian or Georgian. What should I do to solve this problem and get correct unicode characters. I want to mention that form submitting works fine and I am receiving correct unicode chars but I need to use Ajax. below is the code.
$.ajax({
url: url,
data: {
nameGeo: $('#sauceNameGeo').val(),
nameEng: $('#sauceNameEng').val(),
nameRus: $('#sauceNameRus').val(),
descriptionGeo: $('#sauceDescGeo').val(),
descriptionEng: $('#sauceDescEng').val(),
descriptionRus: $('#sauceDescRus').val()
}
}).done(function(response) {
$('#sauceNameGeo').val('');
$('#sauceNameEng').val('');
$('#sauceNameRus').val('');
$('#sauceDescGeo').val('');
$('#sauceDescEng').val('');
$('#sauceDescRus').val('');
$('.table-hotdog-sauces > tbody:last').append(response);
alertify.success("Data has been saved");
});
Maybe I should use some Java APIs or something else on the front end. Any help would be appreciated.