CharSet
Version: - stringSummary
Returns the encoding character set for the page.
Settings
The value comes from the Encoding field for website language.
(Modules > Language > Language > Settings panel)
Alternatively the value is based on your Dynamicweb system settings.
Remarks
his tag can be used on master templates.
(File Manager tab > Templates folder > Master folder)
The value should be assigned to the charset attribute of the meta tag http-equiv Content-Type.
Examples
Outputting the template tag
@GetString("CharSet")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("CharSet"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("CharSet");
}
Outputting the template tag
<!--@CharSet-->
Check if string has a value
<!--@If Defined(@CharSet)-->
Let's output this tag here: <strong><!--@CharSet--></strong>
<!--@EndIf(@CharSet)-->