添加的内容 删除的内容
(修改自此处;原许可:CC BY-SA 3.0[网站升级迁移]) |
小 (机器人:删除3个模板:Wayback、Webarchive、WebCite) |
||
第6行: | 第6行: | ||
== 其它的編碼識別方式 == |
== 其它的編碼識別方式 == |
||
由於字符集探测的不可靠,所以通常是用屬性標籤去註明是用何種編碼。<ref>[http://www.w3.org/International/questions/qa-html-encoding-declarations Declaring character encodings in HTML] |
由於字符集探测的不可靠,所以通常是用屬性標籤去註明是用何種編碼。<ref>[http://www.w3.org/International/questions/qa-html-encoding-declarations Declaring character encodings in HTML] - W3C</ref> |
||
;在HTML的<code><head></head></code>區塊裡 |
;在HTML的<code><head></head></code>區塊裡 |
||
例如在HTML文件中使用一個<code>meta</code> element去標示出編碼種類: |
例如在HTML文件中使用一個<code>meta</code> element去標示出編碼種類: |
||
第14行: | 第14行: | ||
<syntaxhighlight lang="html4strict"> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /></syntaxhighlight> |
<syntaxhighlight lang="html4strict"> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /></syntaxhighlight> |
||
也可以在[[HTTP]]傳輸文件時,在HTTP檔頭裡使用Content-type通知給瀏覽器知道使用何種編碼,以使瀏覽器能正確的顯示出內容。<ref>[http://www.w3.org/International/O-HTTP-charset Setting the HTTP charset parameter] |
也可以在[[HTTP]]傳輸文件時,在HTTP檔頭裡使用Content-type通知給瀏覽器知道使用何種編碼,以使瀏覽器能正確的顯示出內容。<ref>[http://www.w3.org/International/O-HTTP-charset Setting the HTTP charset parameter] - W3C</ref> |
||
;在asp輸出頁面前使用 |
;在asp輸出頁面前使用 |
||
第34行: | 第34行: | ||
== 外部連結 == |
== 外部連結 == |
||
* [http://www.fas.org/irp/doddir/army/fm34-40-2/appb.pdf Frequency distributions of English trigraphs] |
* [http://www.fas.org/irp/doddir/army/fm34-40-2/appb.pdf Frequency distributions of English trigraphs] |
||
* [https://web.archive.org/web/20100924225854/http://msdn.microsoft.com/en-us/library/aa920101.aspx IMultiLanguage2::DetectInputCodepage] |
* [https://web.archive.org/web/20100924225854/http://msdn.microsoft.com/en-us/library/aa920101.aspx IMultiLanguage2::DetectInputCodepage] |
||
* [https://web.archive.org/web/20101217195221/http://icu-project.org/apiref/icu4c/ucsdet_8h.html API reference for ICU charset detection] |
* [https://web.archive.org/web/20101217195221/http://icu-project.org/apiref/icu4c/ucsdet_8h.html API reference for ICU charset detection] |