I am using ajax request to send a value from client side to server side to insert in mysql database using ajax request. The value is in hindi language (हिन्दी मतलब जाने). But on client side when i alert it i get the hindi text as shown above but after the server side request is processed it gets inserted in the database as %u0939%u093F%u0928%u094D%u0926%u0940 %u092E%u0924%...
i have used in the client side
request1h[k].setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=utf-8;");
request1h[k].send(requestDatah);
and on the server side header with php
<?php header("Content-Type: text/html; charset=utf-8");
mysqli_set_charset($con,"utf8");
then i read about utf8_encode and used that on the post value also
$value1 = utf8_decode($_POST['values']);
but still i can't insert the hindi text in the database as it is. Please help me what to do ?