【发布时间】:2017-06-28 06:31:13
【问题描述】:
如何删除<meta http-equiv="content-type" content="text/html; charset=utf-8" />
在这个 PHP Joomla 模板上?因为我从 Joomla 和模板中复制了元标记:/ 它正在调用的 Head.php 文件是:
<meta charset="<?php echo $this['system']->document->getCharset(); ?>">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<?php if($this['config']->get('responsive', true)): ?>
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php endif; ?>
<?php if (isset($error)): ?>
<title><?php echo $error; ?> - <?php echo $title; ?></title>
<?php else: ?>
<jdoc:include type="head" />
<?php endif; ?>
Index.php 是:
// get theme configuration
include($this['path']->path('layouts:theme.config.php'));
?>
<!DOCTYPE HTML>
<html lang="<?php echo $this['config']->get('language'); ?>" dir="<?php echo $this['config']->get('direction'); ?>" data-config='<?php echo $this['config']->get('body_config','{}'); ?>'>
<head>
<?php echo $this['template']->render('head'); ?>
</head>
<body class="<?php echo $this['config']->get('body_classes'); ?>">
这是这个问题的图像: Link to the Problem ( imgur )
【问题讨论】:
标签: php html joomla character-encoding header