【发布时间】:2012-03-19 22:42:13
【问题描述】:
Utf-8 仅适用于在标题中生成的文本,但不适用于(例如)索引中的文本。有谁知道如何解决这个问题?
header.php:
<?php
header('Content-Type: text/html; charset=utf-8');
?>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
....
例如:index.php
<?php
include "header.php";
?>
...body stuff
谢谢:)
【问题讨论】:
-
HTML5 使用
<meta charset="utf-8"/>