Вход

Просмотр полной версии : Дублирование тега <meta charset=


nullxxx
29.03.2007, 12:48
Только начинаю разбираться в TYPO3

В шаблоне прописано :

<head>
<title>Base template, header, menu, content and footer.</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>
<style type="text/css" id="internalStyle">
/*<![CDATA[*/
BODY { margin: 0 0 0 0; background-color: white; }
/*]]>*/
</style>
<link href="res/stylesheet.css" rel="stylesheet" type="text/css" />
</head>


А на сайте выводится:

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<!--
This website is powered by TYPO3 - inspiring people to share!
TYPO3 is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.
TYPO3 is copyright 1998-2006 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
Information and contribution at http://typo3.com/ and http://typo3.org/
-->

<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_3e16484f4b.css" />


<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>
<style type="text/css" id="internalStyle">
/*<![CDATA[*/
BODY { margin: 0 0 0 0; background-color: white; }
/*]]>*/
</style>
<link href="fileadmin/template/main/res/stylesheet.css" rel="stylesheet" type="text/css" />

<title>Root page</title>
<meta name="generator" content="TYPO3 4.1 CMS" />
<script type="text/javascript" src="typo3temp/javascript_757c080409.js"></script>


</head>

Куда смотреть? Нужна кодировка charset=windows-1251

Добавление:
config {
metaCharset = windows-1251
renderCharset = windows-1251
notification_email_encoding = 8bit
notification_email_charset = windows-1251
language = ru
locale_all = ru_RU.CP1251
}

Не помогает

GF
29.03.2007, 13:28
Только начинаю разбираться в TYPO3

Здорово!

В шаблоне прописано :
<head>
<title>Base template, header, menu, content and footer.</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>
<style type="text/css" id="internalStyle">
/*<![CDATA[*/
BODY { margin: 0 0 0 0; background-color: white; }
/*]]>*/
</style>
<link href="res/stylesheet.css" rel="stylesheet" type="text/css" />
</head>


Убери это фсе..


А на сайте выводится:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<!--
This website is powered by TYPO3 - inspiring people to share!
TYPO3 is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.
TYPO3 is copyright 1998-2006 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
Information and contribution at http://typo3.com/ and http://typo3.org/
-->

<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_3e16484f4b.css" />


<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>
<style type="text/css" id="internalStyle">
/*<![CDATA[*/
BODY { margin: 0 0 0 0; background-color: white; }
/*]]>*/
</style>
<link href="fileadmin/template/main/res/stylesheet.css" rel="stylesheet" type="text/css" />

<title>Root page</title>
<meta name="generator" content="TYPO3 4.1 CMS" />
<script type="text/javascript" src="typo3temp/javascript_757c080409.js"></script>
</head>

Было-бы глупо еслиб выводилось че-то другое..


Куда смотреть? Нужна кодировка charset=windows-1251
Добавление:
config {
metaCharset = windows-1251
renderCharset = windows-1251
notification_email_encoding = 8bit
notification_email_charset = windows-1251
language = ru
locale_all = ru_RU.CP1251
}
Не помогает

Одно это не поможет..
Еще в localconf.php вставьте строчку:
$TYPO3_CONF_VARS['BE']['forceCharset'] = 'windows-1251';

http://forum.typo3.biz/search.php - здесь фсе это есть..

PhilD
29.03.2007, 13:33
Вероятно при установке пункт forceCharset вы пропустили.
а быстрое решение - page.config.disableCharsetHeader = 1

Куда смотреть?
TSref, Setup, CONFIG, поиск по слову charset

nullxxx
29.03.2007, 14:37
Вероятно при установке пункт forceCharset вы пропустили.

Одно это не поможет..
Еще в localconf.php вставьте строчку:
$TYPO3_CONF_VARS['BE']['forceCharset'] = 'windows-1251';

Спасибо!! Помогло!!


TSref, Setup, CONFIG, поиск по слову charset

http://forum.typo3.biz/search.php - здесь фсе это есть..

Не сочтите занудой, но поиск с использованием пиктокода/тикета/капчи(CAPTCHA) очень утомляет.

PhilD
29.03.2007, 15:07
вообще-то я имел в виду документацию :) вы же спросили - что смотреть