当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO CharSet 属性

ADO
ADO DataTypes
ADO 摘要
ADO 实例

ADO CharSet 属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 369 ::
收藏到网摘: n/a

The CharSet property sets or returns a value that specifies into which character-set the contents of the Stream are to be translated (when stored in the Stream object’s buffer). Default is "Unicode".
CharSet属性的作用是:在字符属性[character-set]中设置或返回一个用于转换内容字符的值。该属性尽可以用在文本记录流中(当存储在字符流对象的缓冲器中)。默认值为"Unicode [统一字符编码标准] "。

This property is used for converting data going into the Stream or coming out of the Stream. For example, if the Stream contains ISO-8859-1 data and that data is copied to a BSTR, the Stream object will convert the data to Unicode. The reverse is also true.
该属性是用来转换数据的(该数据被写入记录流或从记录流中读取)。举例来说:如果记录流中包含了ISO-8859-1数据,并且该数据被复制到了一个BSTR中,那么,这个记录流对象将把数据转换为"Unicode [统一字符编码标准] ",返回来也是可以的。

Note: This property is only used with text Stream objects (type is adTypeText).
注意:该属性仅用在文本记录流对象中(类型为adTypeText)

Note: For an open Stream object, the current position must be at the beginning of the Stream (0) to set this property.
注意:对于一个已经打开的记录流对象而言,要设置该属性,当前位置必须处于记录流的起始位置(Position[位置]=0)。

Syntax
语法

objStream.Charset

评论 (0) All

登陆 | 还没注册?