Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











PROPERTY:  Stream::Charset

Implemented in version 2.5

streamobject.CharSet = string
string = streamobject.CharSet


The CharSet property sets or returns a string value that specifies into which character set the text data will be translated by ADO. This property is not used with binary data.

The default character set is the Unicode format. Also, regardless of what character set is specified by CharSet, the data is always stored in the Unicode format inside the Stream object. The wisest course of action is to set the CharSet property before the Stream is opened. However, if the Stream is already open, you can set the CharSet property without ill effects only if the Position property of the Stream object is set to zero (which marks the beginning of the text data).

Code (VBScript):
If (objStream.Type = adTextType) Then
   objStream.Charset = "ascii"
End If

 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information