send header problem

I have problem with send header error:

My problem was solved by adding the following code to the config/main.php





ob_start('My_OB');

function My_OB($str, $flags)

{

    //remove UTF-8 BOM

    $str = preg_replace("/\xef\xbb\xbf/","",$str);


    return $str;

}



But I’m faced with a new problem: when using Yiic shell. Problem if the command was executed but was not shown. But Yiic shell worked well by commented this code.

you must save you sourse files in utf-8 without BOM

You can simply change encoding in notepad++

Thank you for your answer. You NetBeans there is also an option? :huh: