ASP CodePage 屬性
定義和用法
CodePage 屬性規定在顯示動態內容時所使用的字符集。
例子:
- 1252 - 美國英語和大多數歐洲語言
- 932 - 日本漢字
語法
Session.CodePage(=Codepage)
參數 | 描述 |
---|---|
codepage | 為運行腳本引擎的系統定義代碼頁面(字符集)。 |
實例
<% Response.Write(Session.CodePage) %>
輸出:
936
CodePage 屬性規定在顯示動態內容時所使用的字符集。
例子:
Session.CodePage(=Codepage)
參數 | 描述 |
---|---|
codepage | 為運行腳本引擎的系統定義代碼頁面(字符集)。 |
<% Response.Write(Session.CodePage) %>
輸出:
936