Open In App

ASP Charset Property

Last Updated : 22 Apr, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

The ASP Charset Property is used to append the name of the character set to the content-type header in the Response object.

For example- ISO-8859-13. The default character set is ISO-LATIN-1. 

Syntax:

response.Charset(charsetname)

Parameter Values: It contains the value i.e charsetname which specifies the name of the character set for the asp page.  

Examples: 

  • If the charset property is not set into an ASP page, then the content type Header will look like :
content-type:text/html
  • If the same property included in asp pages
<% response.Charset=ISO-8859-13 >
  • The content-type header would be as follows:
content-type:text/html; Charset=ISO-8859-13

Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads