在head標籤裏面加入這句
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
B.HTML和PHP混合的頁面解決方案。
<?php
header("Content-type:text/html;charset=utf-8");
?>
在head標籤裏面加入這句
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
B.HTML和PHP混合的頁面解決方案。
<?php
header("Content-type:text/html;charset=utf-8");
?>