AddDefaultCharset On | Off | charset
On #預設iso-8859-1,忽略網頁meta中所指定的編碼
Off #關閉預設編碼,依網頁內的編碼設定來顯示.
big5 #指定用big5編碼.忽略網頁所指定的編碼.
---------------------------------------------
以下是原文,上面是個人的理解,不一定正確,其中我不懂header和meta有什麼不同,php可以送出header,一般html網頁有header嗎?
-------------------------------------------------------------
http://httpd.apache.org/docs/mod/core.html#adddefaultcharset
AddDefaultCharset directive
Syntax: AddDefaultCharset On|Off|charset
Context: all
Status: core
Default: AddDefaultCharset Off
Compatibility: AddDefaultCharset is only available in Apache 1.3.12 and later
This directive specifies the name of the character set that will be added to any response that does not have any parameter on the content type in the HTTP headers. This will override any character set specified in the body of the document via a META tag. A setting of AddDefaultCharset Off disables this functionality. AddDefaultCharset On enables Apache's internal default charset of iso-8859-1 as required by the directive. You can also specify an alternate charset to be used.
For example:
AddDefaultCharset utf-8
Note: This will not have any effect on the Content-Type and character set for default Apache-generated status pages (such as '404 Not Found' or '301 Moved Permanently') because those have an actual character set (that in which the hard-coded page content is written) and don't need to have a default applied.