?
本文檔使用 php中文網(wǎng)手冊 發(fā)布
Charset 屬性向 Response 對象中 content-type 頭部追加字符集名稱。默認字符集是 ISO-LATIN-1。
注意:此屬性可接受任何字符串,不論是否為合法的字符集名稱。
response.Charset(charsetname)
參數(shù) | 描述 |
---|---|
charsetname | 為頁面規(guī)定字符集的字符串。 |
如果 ASP 頁面沒有設(shè)置 Charset 屬性,那么 content-type 頭部會是這樣的:
content-type:text/html
如果我們使用了 Charset 屬性:
<%response.Charset="ISO-8859-1"%>
content-type 頭部會是這樣的:
content-type:text/html; charset=ISO-8859-1