Special Characters In Ajax Response


Above shows ajax response in Firebug and I wish to remove � from ajax response. But this special character only generates when I set ajax action to Yii application. Otherwise its working perfectly. This is my controller

class AjaxController extends Controller{

public function actionIndex() {



public function actionGetMore() {

       echo 'winu';



below shows ajax code in view page(index.php)


$basePath = Yii::app()->getbaseurl(TRUE);



var processing;



        if (processing)

            return false;

        if ($(window).scrollTop() >= ($(document).height() - $(window).height())*0.<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/cool.gif' class='bbc_emoticon' alt='8)' />{

            processing = true;


            type: "POST",

            url:    '<?php echo $basePath.'/index.php/lead/ajax/GetMore'?>',

            success: function(data){


            error: function(){