mow*_*gli 1 php apache html5 utf-8 character-encoding
我试图掌握UTF-8和charset编码,但这很棘手
这段代码:
<?php
header('Content-type: text/html; charset=utf-8');
?>
<!doctype html>
<html lang="da">
<head>
<title>UTF-8 test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div>
<p>UTF-8 æøå tést Señor!</p>
</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
输出:
UTF-8 ??? t?st Se?or!
Run Code Online (Sandbox Code Playgroud)
在本地服务器和多个公共站点上都有相同的结果(所有Apache)我是否需要在php中更改某些内容?还是Apache?还是我的文字编辑?(记事本++)
| 归档时间: |
|
| 查看次数: |
1649 次 |
| 最近记录: |