Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component

Index of Chilkat Blog Posts

January 24, 2006

Charset method parameter in FTP Component

Regarding the Charset parameter in Ftp2.PutFileFromTextData:

"I got it working (as you knew I would). But on the PutFileFromTextData there is something called charset As String). What should that be? I am trying to transfer some simple text files here.

VB6 passes Unicode strings to ActiveX method string arguments. You probably don’t want to write Unicode characters to your text file. If your text is English, you most likely want iso-8859-1 because that encompasses us-ascii (7bit) and also includes the accented characters used by Western European languages. You could also specify "us-ascii", "utf-8″, "windows-1252″, or anything else. When the ActiveX is called (and is passed a BSTR internally) it will convert it to the charset of your choice, and that data is sent to the FTP server and written to the text file. So… if you specify "iso-8859-1″ you will get the 1-byte/char that you expected..

Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.