当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP Charset 属性

ASP
ASP Drive
ASP File
ASP Folder
ASP Dictionary
ASP ADO
ASP AdRotator
ASP BrowserCap
ASP Content Linking
ASP Content Rotator
ASP Quick Ref
ASP 摘要
ASP 实例

ASP Charset 属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 367 ::
收藏到网摘: n/a

The Charset property appends the name of a character-set to the content-type header in the Response object. Default character set is ISO-LATIN-1.
ASP Charset属性的作用是给Response对象的“content-type”标题当中添加一个character的名称。默认的character设置时ISO-LATIN-1。

Note: This property will accept any string, regardless of whether it is a valid character set or not, for the name.
注意:这个属性将接受任何形式的字符串,无论这个名称的字符是否有效。

Syntax
语法

response.Charset(charsetname)

Parameter
参数
Description
描述
charsetname A string that specifies a character set for the page
给网页制定一个字符串

Examples
举例

If an ASP page has no Charset property set, the content-type header would be:
content-type:text/html

If we included the Charset property:

<%response.Charset="ISO-8859-1"%>

the content-type header would be:

content-type:text/html; charset=ISO-8859-1

评论 (0) All

登陆 | 还没注册?