Output Encoding Property
The Output Encoding property specifies the encoding to use in the stream set or returned by the Execute method.
Applies To
Command Object |
Syntax
object.Properties("Output Encoding") [= value]
Parts
object
Expression that evaluates to an object in the Applies To list.
value
String that specifies the output encoding.
Data Type
adBSTR
Modifiable
Read/write
OLE DB Property
DBPROP_OUTPUTENCODING
Remarks
Encodings include UTF8, ANSI, and Unicode. If Output Encoding is not set, encoding defaults to UTF8.
If a template is specified at the URL using the template= keyword, the encoding is Unicode. For all other templates, the encoding is obtained from the template, which is a valid XML document and, therefore, has its own encoding.
If an XML template is specified at the URL (instead of as a Transact-SQL query) and Output Encoding is also specified, the encoding specified in Output Encoding overrides the template.