defaultCharset Property

Returns a String that represents the default character set of the page.

expression.defaultCharset

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Remarks

The default value of the defaultCharset property is Windows-1252. For more information on character sets, see HTML Character Sets.

Example

The following example stores the value of the character set used in the active document in a String variable.

Dim strCharset As String

strCharset = ActiveDocument.defaultCharset

Applies to | FPHTMLDocument Object | IHTMLDocument2 Object