|
|

楼主 |
发表于 2007-1-18 11:11:55
|
显示全部楼层
# file aaa.html
aaa.html: HTML document text
# cat aaa.html
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>aaa.html</title>
<body>
<a>aaa 测试</b>
</body>
</html>
aaa.html是我用vim写的,在vim中
:set enc 显示 encoding=utf-8
:set fenc 显示 fileencoding=utf-8
但在firefox浏览其它网页时,能显示charset是utf-8的,也能显示charset是gb2312的
我把这些网页的源码开头看了一下照着做,但在浏览器中打开时就是乱码,我是用我本机的apache方式打开我的页面的,可能是apache的问题,不知如何改apache的配置 |
|