0 Пользователей и 1 Гость просматривают эту тему.
  • 1 Ответов
  • 2189 Просмотров
*

Xuga

  • Захожу иногда
  • 224
  • 122 / 0
  • Интернет-Маркетолог
Кодировка
« : 21.07.2009, 23:06:15 »
Добрый день уважаемые форумчанет.
Есть сайт http://worldofjapan.ru/
У него проблемы с кодировкой в ИЕ и старых версиях оперы. почему то выдается турецкая, хотя в новых версиях браузеров выдается русская.
Подскажите как это лечить.
код:
Код
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<?php
if(file_exists($mosConfig_absolute_path."/modules/mod_lxmenu/css_lxmenu.css")){
?>
<link href="<?php echo $mosConfig_live_site; ?>/modules/mod_lxmenu/css_lxmenu.css" rel="stylesheet" type="text/css"/>
<?php
}
?>
<?php mosShowHead(); ?>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<meta http-equiv="Content-Language" content="ru" />
<?php if ( $my->id ) { initEditor(); } ?>
<link href="<?php echo $mosConfig_live_site;?>/templates/box_rain_brown_2/css/template_css.css" rel="stylesheet" type="text/css" />

<script language='JavaScript'>
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;
</script>
</head>
Рекламное агентство: Medianation
Skype: ibarchenkov

Группа по digital-маркетингу:
http://vk.com/dmarketing
*

Xuga

  • Захожу иногда
  • 224
  • 122 / 0
  • Интернет-Маркетолог
Re: Кодировка
« Ответ #1 : 21.07.2009, 23:23:12 »
мда я чайник
решение проблемы
Код
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<meta http-equiv="Content-Language" content="ru" />
<?php
if(file_exists($mosConfig_absolute_path."/modules/mod_lxmenu/css_lxmenu.css")){
?>
<link href="<?php echo $mosConfig_live_site; ?>/modules/mod_lxmenu/css_lxmenu.css" rel="stylesheet" type="text/css"/>
<?php
}
?>
<?php mosShowHead(); ?>
<?php if ( $my->id ) { initEditor(); } ?>
<link href="<?php echo $mosConfig_live_site;?>/templates/box_rain_brown_2/css/template_css.css" rel="stylesheet" type="text/css" />

<script language='JavaScript'>
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;
</script>
</head>

Строки
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<meta http-equiv="Content-Language" content="ru" />
ставим сразу после тега <head>

Зайройте пожалуйста тему
Рекламное агентство: Medianation
Skype: ibarchenkov

Группа по digital-маркетингу:
http://vk.com/dmarketing
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Кодировка Joomla lavra edition 2008

Автор evgen22

Ответов: 12
Просмотров: 4566
Последний ответ 22.08.2015, 14:26:24
от SeBun
кодировка и .htaccess

Автор Cmac

Ответов: 8
Просмотров: 16437
Последний ответ 13.01.2014, 18:52:39
от icedfox
Кодировка сайта

Автор Ole4ka

Ответов: 11
Просмотров: 4239
Последний ответ 11.02.2010, 21:18:44
от Ole4ka
Кодировка дампа БД Joomla 1.0.x

Автор NekaKawaii

Ответов: 1
Просмотров: 1930
Последний ответ 18.06.2009, 06:04:19
от VETERINAR
Кодировка в sql при импорте неправильная становится

Автор warring

Ответов: 4
Просмотров: 2389
Последний ответ 23.12.2008, 21:26:12
от warring