I saved Russian Language in PHP & MySql. Here is sample characters тыуиппюлкйчг
I used these lines in PHP while saving
mysql_query("set character_set_server='utf8'");
mysql_query("set names 'utf8'");
I checked in Database it saved sucessfully..Now i want to display it to user in EDITOR,It return me ????????????
Here is my code how i am getting from table and display it
$.getJSON("getSingleRow.php?id="+id+"&type="+type, function(json){
$("#"+key).val(val);
});
And on getSingleRow.php i have this code
echo json_encode($russian);
Note: when i run getSingleRow.php directly,it also prints ????????????
UPDATED: First of all,It saved sucessfully in database,i can see there is in russian language.
I have two pages to get it.One page having editor,I have this line on top
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Also on top in php i have this line
header('Content-Type: text/html;charset=utf-8');
Other file is on server side from where i get it...getSingleRow.php
On top of this page i have
header('Content-Type: text/html;charset=utf-8');
and on end i have this code
echo json_encode($russian);
All answers given to this question has been applied already but no luck
EVEN simple this code is not working
<?php
header('Content-Type: text/html;charset=utf-8');
echo "тыуиппюлкйчг ";
?>