Partager via


encoding Property

 

Sets and gets encoding for the output.

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. Read/write. The default string is empty, that is, UTF-16. Microsoft® Visual Basic® strings are always UTF-16 encoded. If your output is a string, the encoding parameter is ignored.

Versioning

Implemented in: MSXML 3.0 and later

Applies to

MXXMLWriter CoClass