Mrb arkadaşlar sitem için internetten bir ajax yorum örneği buldum fakat bir türkü türkçe karakter problemini çözemedim. internetteki ce buradaki çözüm yöntemlerini denedim ama olmadı. yardımcı olabilirmisiniz. index. php content="text/html; charset=utf-8" /> WebCodo :: Simple Comments System Using Php Jquery & Ajax <script></script> // Connect to the database include ; $id_post = "1"; //the post or the page id?> date_default_timezone_set ; $sql = mysql_query("SELECT FROM comments WHERE id_post = '$id_post' AND onay='1'") or die(mysql_error ;; while($affcom = mysql_fetch_assoc { $name = $affcom ; $email = $affcom ; $comment = $affcom ; $date = $affcom ; // Get gravatar Image // https://fr. gravatar.com/site/implement/images/php/ $default = "mm"; $size = 35; $grav_url = "http://www.gravatar.com/avatar/". md5(strtolower(trim ."?d=".$default."&s=".$size; ?> Yorum yazın... Gönder İptal <script> $(function { //alert ; $ . click(function ); / when start writing the comment activate the "add" button / $ . bind('input propertychange', function { $ . css( ); var checklength = $ . val . length; if { $ . css( ); } }); / on clic on the cancel button / $ . click(function { $ . val ; $ . fadeOut('fast', function ); }); // on post comment click $ . click(function { var theCom = $ ; var theName = $ ; var theMail = $ ; if( ! theCom. val else{ $. ajax({ type: "POST", url: "ajax/add-comment. php", data: 'act=add-com&id_post='++'&name='+theName. val +'&email='+theMail. val +'&comment='+theCom. val , success: function { theCom. val ; theMail. val ; theName. val ; $ . hide('fast', function ) } }); } }); }); </script> Ajax. php date_default_timezone_set ; extract ; if : $name = htmlentities ; $email = htmlentities ; $comment = htmlentities ; // Connect to the database include ; // Get gravatar Image // https://fr. gravatar.com/site/implement/images/php/ $default = "mm"; $size = 35; $grav_url = "http://www.gravatar.com/avatar/" . md5( strtolower( trim ) ) . "?d=" . $default. "&s=" . $size; if(strlen <= '1') //insert the comment in the database mysql_query("INSERT INTO comments VALUES "); if(! mysql_errno { ?> ?> SQL TABLOSU CREATE TABLE IF NOT EXISTS `comments` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(40) NOT NULL, `email` varchar(60) NOT NULL, `comment` text NOT NULL, `id_post` int(11) NOT NULL, `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `onay` int(1) NOT NULL DEFAULT '0', PRIMARY KEY )ENGINE=MyISAM DEFAULT CHARSET=latin1;

ajax. php dosyasının en başındaki header("Content-Type: text/html; charset=utf-8");