I have a problem. After submission of a form I send request using AJAX. Everything was perfect until I tried Cyrillic text.
what I input: питання
what alerts me javascript: питання
what echos me $_POST['question']: %u041F%u0438%u0442%u0430%u043D%u043D%u044F
Here's my AJAX request:
$.ajax({
type: "POST",
url: "addQuestion.php",
data: "u_id=" + $("#u_id").val() + "&u_a_name=" + $("#u_a_name").val() + "&question="+escape($("#question_input").val()),
success: function(data) {
if (data == "Asked") {
alert("Asked");
window.location.reload();
} else {
alert(data);
}
}
});
So I thought it is AJAX problem, but I haven't found answer in internet. Thank you for attention.