ASP Charset property
Charset property appends the character set name to the Response object content-type header. The default character set is ISO-LATIN-1.
Note: This property accepts any string, whether or not a legal character set name.
grammar
response.Charset(charsetname)
参数 | 描述 |
---|---|
charsetname | 为页面规定字符集的字符串。 |
Examples
If the ASP page is not set Charset attribute, content-type header would be something like:
content-type:text/html
If we use the Charset property:
<%response.Charset="ISO-8859-1"%>
content-type header would be something like:
content-type:text/html; charset=ISO-8859-1
Complete Response Object Reference