Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

ASP Response Object Charset Property

The Charset property appends the name of the character set (for example, ISO-LATIN-7) to the content-type header in the response object.

Syntax: ASP Response Object Charset Property

Response.Charset(CharsetName)

Parameters: ASP Response Object Charset Property

CharsetName

A string that specifies a character set for the page. The character set name will be appended to the content-type header in the Response object.

Examples: ASP Response Object Charset Property

For an ASP page that did not include the Response.Charset property, the content-type header would be:

content-type:text/html

If the same .asp file included:

<% Response.Charset("ISO-LATIN-7") %>

the content-type header would be:

content-type:text/html; charset=ISO-LATIN-7

Remarks: ASP Response Object Charset Property

This function inserts any string in the header, whether it represents a valid character set or not.

If a single page contains multiple tags containing Response.Charset, each Response.Charset will replace the previous CharsetName. As a result, the character set will be set to the value specified by the last instance of Response.Charset in the page.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.