header("Content-type: text/html;charset=cp1251");
или
header("Content-type: text/html;charset=utf-8");
или
<meta http-equiv="Content-type" content="text/html;charset=windows-1251" />
или
<meta http-equiv="Content-type" content="text/html;charset=utf-8" />