<?
header(Content-Type: text/html;charset="utf-8")
$s = "该书的相关说明";
$u = iconv("GB2312","UTF-8",$s);
echo $u;
$fp = fopen("test", "w");
fwrite($fp,$u);
fclose($fp);?>
header(Content-Type: text/html;charset="utf-8")
$s = "该书的相关说明";
$u = iconv("GB2312","UTF-8",$s);
echo $u;
$fp = fopen("test", "w");
fwrite($fp,$u);
fclose($fp);?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="UTF-8">
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="UTF-8" />
</head>
<body>
<?
$s = "该书的相关说明";
$u = iconv("GB2312","UTF-8",$s);
echo $u;
$fp = fopen("test", "w");
fwrite($fp,$u);
fclose($fp);?>
</body>
</html>