Programming with FTP OLE Automation

image\rwnprg32.gif ClientCharacterSet property

 

Syntax

Object.ClientCharacterSet
Object.ClientCharacterSet =
Value

Data type

Enumeration

 

Description

Returns (first syntax line) or specifies (second syntax line) the character set to use on the client PC during ASCII file transfers. For file transfers, if TranslateCharacters is set to True, character translation occurs between client and server character sets based on the ClientCharacterSet setting and the ServerCharacterSet setting.

Values

The default value is rcWindowsCharacterSet.

Symbolic Constant Name

Numeric Value

rcDOSCharacterSet

1

rcWindowsCharacterSet

0

rcWindowsANSI

2

rcWindowsLatin2

3

rcWindowsCyrillic

4

rcWindowsGreek

5

rcWindowsYUASCII

6

rcDOSSlavic

7

The Windows character set (rcWindowsANSI) is slightly different from the DOS character set (rcDOSCharacterSet). If you are receiving an ASCII file to be used in the Windows environment, set ClientCharacterSet to one of the Windows values. The default setting, rcWindowsCharacterSet, specifies the character set that the Windows operating system is currently using. To override the character set in use by Windows, specify rcWindowsANSI, rcWindowsLatin2, rcWindowsCyrillic, rcWindowsGreek, or rcWindowsYUASCII. If you plan to use the file in DOS, and therefore want to use a DOS character set, set ClientCharacterSet to rcDosCharacterSet, or rcDOSSlavic.

FTP Script SET Parameter Equivalent

ASCII-CLIENT-TYPE