HttpSessionState.CodePage 属性

定义

获取或设置当前会话的字符集标识符。Gets or sets the character-set identifier for the current session.

public:
 property int CodePage { int get(); void set(int value); };
public int CodePage { get; set; }
member this.CodePage : int with get, set
Public Property CodePage As Integer

属性值

当前会话的字符集标识符。The character-set identifier for the current session.

注解

字符集 (代码页) 用于解释多字节字符数据、确定字符值和排序顺序。A character set (code page) is used to interpret multi-byte character data, determining character value, and therefore sort order. 代码页设置仅适用于多字节字符数据, 不适用于 Unicode 字符数据。Code-page settings apply only to multi-byte character data, not to Unicode character data.

提供CodePage此属性是为了与 ASP 的早期版本兼容。This CodePage property is provided for compatibility with earlier versions of ASP only. 如果不需要保持与 ASP 页面的向后兼容性, 请ContentEncoding改用属性。If you do not need to maintain backward compatibility with ASP pages, use the ContentEncoding property instead.

适用于

另请参阅