problem in showing utf8 letters in jquery
- by Mac Taylor
hey guys
i made a jquery script similar to wordpress that can show slugged title from an input box while user is typing
$(function()
{
$(".word").keyup(function()
{
var word= $(this).val();
var inputmirror = $('#plink');
inputmirror.val(word);
$.post("slug.php"+"&title="+word, function(data){
$('#preshow').html(data).fadeIn("slow");
});
return false;
});
});
and php file :
$title = $_GET['title'];
if (!empty($title)) {
echo Slugit($title);
}
everything works fine unless when i enter arabic letters in input box it shows coded characters like this :
http://mysite.info/this-is-arabic-%d8%a7%d9%84%d9%84%d9%87