添加的内容 删除的内容
(修改自此处;原许可:CC BY-SA 3.0[网站升级迁移]) |
小 (→參考資料:清理) |
||
(未显示1个用户的3个中间版本) | |||
第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輸出頁面前使用 |
||
第28行: | 第28行: | ||
== 參考資料 == |
== 參考資料 == |
||
{{ |
{{reflist}} |
||
== 相關 == |
== 相關 == |
||
* {{link-en|Unicode国际化组件|International Components for Unicode}} - A library that can perform charset detection. |
* {{link-en|Unicode国际化组件|International Components for Unicode}} - A library that can perform charset detection. |
||
== 外部連結 == |
== 外部連結 == |
||
* [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] |
||
* [ |
* [http://msdn.microsoft.com/en-us/library/aa920101.aspx IMultiLanguage2::DetectInputCodepage] |
||
* [ |
* [http://icu-project.org/apiref/icu4c/ucsdet_8h.html API reference for ICU charset detection] |
||
* [ |
* [http://www.mozilla.org/projects/intl/chardet.html Mozilla Charset Detectors] |
||
* [ |
* [http://jchardet.sourceforge.net/ Java port of Mozilla Charset Detectors] |
||
<!-- |
<!-- |
||
{{character encoding}} |
{{character encoding}} |