Share via


encoding Property

 

Allows you to set the encoding according to HTML 4.0 specifications. MXHTMLWriter supports the same encoding as the Microsoft XML Core Services (MSXML) DOM. This parameter is ignored for output to a BSTR, but will take effect if output is changed in the middle of a document to a destination other than BSTR.

Visual Basic Usage Syntax

oMXXMLWriter.encoding = strValue  
strValue = oMXXMLWriter.encoding  

C/C++ Syntax

 [propput]  
HRESULT encoding (  
   [in] BSTR strEncoding);  
  
[propget]  
HRESULT encoding (  
   [out, retval] BSTR * strEncoding);  

Parameters

strEncoding
The BSTR used to identify encoding.

Return Values

S_OK
The value returned if no errors are reported.

Remarks

String. This property is read/write. The default is UTF-16. If your output is a string, the encoding parameter is ignored.

Versioning

Implemented in: MSXML 6.0

Applies to

MXHTMLWriter CoClass

See Also

IMXWriter Interface
MXXMLWriter CoClass