Name

Stream.CharSet Property — (Versions 2.5, 2.6)

Synopsis

stream.CharSet = characterset
                  

The CharSet property indicates the character set to whioch the contents of a text Stream should be translated.

Datatype

String

Description

The CharSet property can be set to a valid character set only if the Position property of the Stream object is set to 0. Valid character sets for a system are defined in the HKEY_CLASSES_ROOT\MIME\Database\CharSet subkeys.

The default value for the CharSet property is “unicode”. If the character set is changed on the fly, the data is translated as it is read from the stream and passed to the application. When writing data, the information is translated before being saved to the data source.

This property is only valid for text streams, which are Stream objects having a value of adTypeText for their Type property value.

See Also

Stream.Type Property

Get ADO: ActiveX Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.