usedCharset property
Gets the character set used to decode the current document.
Syntax
HRESULT value = object.get_usedCharset(* p);
Property values
Type: BSTR
the character set used to decode the current document.
Remarks
The character set used to decode external script references is based on a number of factors, including the value of the IHTMLDocument2::charset attribute specified for script elements, byte order marks, and HTTP headers.