当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP Charset 属性
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.
注意:这个属性将接受任何形式的字符串,无论这个名称的字符是否有效。
response.Charset(charsetname) |
Parameter 参数 | Description 描述 |
---|---|
charsetname | A string that specifies a character set for the page 给网页制定一个字符串 |
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 |