肾功能不全可以吃莴笋:设计一个英文网站,请问编码问题

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/27 22:32:14
请问如何设置charset=gb2312还是UTF-8,但国外客户看的时候不会有乱码呢??

If the contents of the html web page in English, you do not have to include the <META.> tag, because the default is English (ASCII).

If the contents of the html web page in Chinese, then you need the <META ..> tag and set charset=gb2312.

-----------------------------------------------

如果HTML的内容是英文,不必写这个<META...>,因为默认就是英文(ASCII).

如果HTML的内容是中文,用gb2312
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=gb2312">

UTF-8