Сморим доку к апачу:
Цитата:
AddDefaultCharset Directive.
This directive specifies the name of the character set that will be added to any response that does not have any parameter on the content type in the HTTP headers. This will override any character set specified in the body of the document via a META tag. A setting of AddDefaultCharset Off disables this functionality. AddDefaultCharset On enables Apache's internal default charset of iso-8859-1 as required by the directive. You can also specify an alternate charset to be used.
|
Тоесть установка оной директивы отменяет действие META тегов в документе... старые бровзеры, особенно IE, мягко ложат на стандарты и по этому используют META тэг... более правильные используют кодировки указанные сервером...
Мой совет, если ты имееш доступ к конфигам сервера, или есть возможность использовать .htaccess файлы - вообще не используй META тэги, а кодировку задавай непосредственно в настройках VirtualHost или в .htaccess директивы AddCharset или AddType
я использую в .htaccess строчку
AddType "text/html; charset=windows-1251" .htm .html .shtml
а в cgi печатаю Content-type с нужным чарсетом...