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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access