HTML字符编码
HTML于1991年面世,但一直要到1997年推出4.0版本以后,才对国际化这题目有一个较好的回应。在此之前,为了保证所有人都能够正常阅读内容,当要对所有用到ASCII字集以外字符 的规范。这是为了两个目的:
- 保持储存在 HTML 文件内的内容的完整性,
- 让市面上大多数浏览器都能正确显示文本的内容。
利用 meta 命令
在 HEAD 里面加入这段内容:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
或者將utf-8改成你所使用的編碼
参看
- MIME-Version: 1.0
<html><head><style type=3D"text/css"></style></he=
ad><body>
21":"dItnetnoc","052":"thgieh_gmi","061":"htdiw_gmi",01:"thgiRgniddap",01:"= tfeLgniddap",01:"mottoBgniddap",01:"poTgniddap",2:"eziStnofLMTH","xp31":"ez= iStnof","fires-snas,lairA,anadreV":"tnof","000066#":"roloCtnof","ffffff#":"= roloCdnuorgkcab","eslaf":"taeper","tfel":"Xsop","mottob":"Ysop","gpj.tfelmo= ttob_selbbubtraeh_mail/citats/yrenoitats/a/a/moc.gmiy.l//:ptth":"dnuorgkcab= ",";000066#:roloc;xp01 xp01 xp01 xp01:gniddap;xp31 :ezis-tnof;fires-snas,la= irA,anadreV :ylimaf-tnof;000066#:roloc;llorcs tfel mottob taeper-on )gpj.tf= elmottob_selbbubtraeh_mail/citats/yrenoitats/a/a/moc.gmiy.l//:ptth(lru ffff=
ff#:dnuorgkcab":"elyts"{:"ydob","tfelmottob_selbbubtraeh_mail":"di"{<=
div style=3D"font-family:=E7=B4=B0=E6=98=8E=E9=AB=94, mingliu, serif;font-s=
ize:14pt;color:#660000;">
</body></html>
--0-799209876-1231158551=:58026-- --0-1450108508-1231158551=:58026 Content-Type: application/octet-stream; name="=?utf-8?B?5rGf5piO6Iqz6Iux5paH5pS25pOaLmRvYw==?=" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="=?utf-8?B?5rGf5piO6Iqz6Iux5paH5pS25pOaLmRvYw==?="