jcrush, речь о рсс канале для яндекс.новостей, а они принимают только в win1251.
Поэтому и кодировка файла ANSI а не utf-8
Trustmaster, заголовок:
Ответ сервера: HTTP/1.1 200 OK
Сервер: nginx/0.7.62
Дата: Wed, 24 Feb 2010 19:09:54 GMT
Тип контента: text/html; charset=utf8
Transfer-Encoding: chunked
Соединение: keep-alive
Keep-Alive: timeout=20
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
X-Powered-By: PHP/5.2.10
Set-Cookie: PHPSESSID=eba1fa10ca1e1c054e7f782b7507563f; path=/
сейчас для пущей ясности куски кода файлов выложу...
Добавлено 7 Минут спустя:<?PHP
/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net
[BEGIN_SED]
File=NEWS_RSS.php
Version=101
Updated=2006-mar-15
Type=Core
Author=Varios
Description=YabdexNewsRSS
[END_SED]
==================== */
define('SED_CODE', TRUE);
define('YANDEX', true);
require_once ('./datas/config.php');
require_once ($cfg['system_dir'].'/functions.php');
require_once ($cfg['system_dir'].'/common.php');
/* ================ Settings ================ */
//RSS News Title
$cfg_titlenews = "Авто новости Рязани";
//RSS Forums Title
$cfg_titleforums = "Рязанский автофорум";
//Page parent category with news on your site (grabbing pages from this and all children's category's)
$cfg_newscat = "news";
//Your site url
$cfg_url = "http://auto62rus.ru";
//RSS Charset
$cfg_charset="windows-1251";
//News displayed in RSS
$cfg_maxlines = 5;
$cfg_ttl = 1;
/* ================ Getting Type ============ */
function sed_sendheaders()
{
global $cfg;
$contenttype = ($cfg['doctypeid']>2 && $cfg['xmlclient']) ? 'application/xhtml+xml' : 'text/html';
header('Expires: Fri, Apr 01 1974 00:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: post-check=0,pre-check=0', FALSE);
if (defined('YANDEX')) header('Content-Type: '.$contenttype.'; charset=windows-1251');
else header('Content-Type: '.$contenttype.'; charset='.$cfg['charset']);
header('Cache-Control: no-store,no-cache,must-revalidate');
header('Cache-Control: post-check=0,pre-check=0', FALSE);
header('Pragma: no-cache');
return(TRUE);
}