HTML字符编码


HTML字符编码 (正體)

Free Web Hosting with Website Builder

HTML1991年面世,但一直要到1997年推出4.0版本以后,才对国际化这题目有一个较好的回应。在此之前,为了保证所有人都能够正常阅读内容,当要对所有用到ASCII字集以外字符 的规范。这是为了两个目的:

  • 保持储存在 HTML 文件内的内容的完整性,
  • 让市面上大多数浏览器都能正确显示文本的内容。

利用 meta 命令

在 HEAD 里面加入这段内容:

<meta http-equiv="Content-Type" content="text/html; charset=big5">
或者
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

参看

外部链接







Why are we here?
All text is available under the terms of the GNU Free Documentation License
This page is cache of Wikipedia. History