Skip to main content
Previous sectionNext section

<CSP:CONTENT>

Specifies the content type of a CSP page.

Synopsis

<CSP:CONTENT>

Attributes

General Attributes

Attribute Description Value
CHARSET Specifies the default charset. A string.
NOCHARSETCONVERT Turns off the charset conversion. “0”, or “1”.
TYPE Specifies the default Content-Type. A string.

Description

The CSP:CONTENT tag specifies the default content characteristics of the generated page. This tag should only appear once on a given CSP page.

Content Type

By default, the content type for a CSP page is “text/html”. You can change this using the TYPE attribute of the CSP:CONTENT tag. This sets the %CSP.Page CONTENTTYPE parameter of the class generated when you compile the CSP page.

Character Set

You can specify the default character set used by a CSP page when it responds to an HTTP request using the CHARSET attribute of the CSP:CONTENT tag. This sets the %CSP.Page CHARSET parameter of the class generated when you compile the CSP page.

You can turn off character set conversion using the NOCHARSETCONVERT attribute. Refer to the %CSP.Page class documentation for details.