字 符 集 探 测
此條 |
为数
其它的 編 碼識別 方式 [编辑]
在 HTML的 <head></head>
區 塊 裡
meta
element
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
也可以在HTTP
在 asp輸出 頁 面前 使用
Response.Charset="utf-8"
Response.AddHeader "Content-Type", "text/html;charset=utf-8"
在 JSP輸出 頁 面前 使用
<%@ page contentType="text/html; charset=utf-8" %>
在 PHP輸出 頁 面前 使用
header('Content-type: text/html; charset=utf-8');
參考 資料 [编辑]
- ^ Declaring character encodings in HTML (页面
存 档备份,存 于互联网档案 馆) - W3C - ^ Setting the HTTP charset parameter (页面
存 档备份,存 于互联网档案 馆) - W3C
相關 [编辑]
- Unicode
国 际化组件 - A library that can perform charset detection.
外部 連結 [编辑]
- Frequency distributions of English trigraphs (页面
存 档备份,存 于互联网档案 馆) - IMultiLanguage2::DetectInputCodepage
- API reference for ICU charset detection
- Mozilla Charset Detectors
- Java port of Mozilla Charset Detectors
|