Skip to main content

<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.PageOpens in a new tab 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.PageOpens in a new tab 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.PageOpens in a new tab class documentation for details.

FeedbackOpens in a new tab