problem in showing utf8 letters in jquery

Posted by Mac Taylor on Stack Overflow See other posts from Stack Overflow or by Mac Taylor
Published on 2010-04-21T18:22:42Z Indexed on 2010/04/21 18:23 UTC
Read the original article Hit count: 219

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about slug

Related posts about php