Gets the encoding of the output stream.

This viper method also supports the extension viper syntax.

Syntax

Smartsite SXML CopyCode image Copy Code
string this.getencoding()

Extension Viper Syntax

Smartsite SXML CopyCode image Copy Code
string page.<id>.getencoding()

Parameters

This Viper method does not expose any parameters.

Return Value

Data Type Description
String The encoding.

Used in

Macro Description
HtmlPage Html container macro that helps you setting the doctype and the encoding of the document.
XHtmlPage Xhtml container macro that helps you setting the doctype, the xml declaration and the encoding of the document.

Expand image Example

SXML