• Welcome to ComeFromChina Community (CFC中文网)! We are the largest Chinese Canadian community forum in Ottawa. Please to participate in discussions, post topics, view images, and access full community features. Join us today! 欢迎来到CFC中文网。请登录以参与讨论、发布主题并查看图片。

[问题] 请教HTML高手有关Encoding问题

  • 主题发起人 主题发起人 LGers
  • 开始时间 开始时间

LGers

知名会员
注册
2005-01-06
消息
140
荣誉分数
12
声望点数
128
发现有的page一打开即显示中文,而有的非要把encoding手工调成Chinese Simplified(GB2312)。
有什么办法在HTML里定义一下,让页面打开时自动设成中文的encoding.
谢谢
 
在 <head> 里面加 http-equiv="Content-Type" content="text/html; charset=gb2312"> 就ok.
 
估计是服务器的问题,我把你的文件保存到我的电脑中再访问,中文就ok
Try this

http-equiv=content-type content="text/html; charset=UTF-8">
 
Yes, you are right.

The web server did something improperly that forced the page displayed in Western European(ISO) character set.
Thanks for your reply.

最初由 苞米花 发布
估计是服务器的问题,我把你的文件保存到我的电脑中再访问,中文就ok
Try this

http-equiv=content-type content="text/html; charset=UTF-8">
 
后退
顶部
首页 论坛
消息
我的