Hello
I'll try deliver a ANSI file as UTF-8 without BOM
i use the DataTransferType = 4 , bu it is deliverd as an ANSI file.
Any help is appricatede.
objGlobal = CreateObject("sfFTPLib.Global")
objFTP = ObjectCreate("sfFTPLib.SSHconnection")
objFTP.Host = "89.97.181.86"
objFTP.Username = "topdmk01"
objFTP.Password = ""
objFTP.Port = "6356"
objFTP.DataTransferType = 4
rc = objFTP.Connect()
IF rc != 0 THEN GOTO WBERRORHANDLER
objsFTP = objFTP.CreateSFTPConnection()
objsFTP.DataTransferType = 4
objsFTP.LogFile.File = "d:\log\smartftp\%tracefile%"
objsFTP.codepage = 65001
objsFTP.Connect()
;*----------------------------------------------------------------------------------------------------------------*
;* Sender filerne til OCTO *
;*----------------------------------------------------------------------------------------------------------------*
rc = objsFTP.UploadFile("<a>\\topdanmark\datadfs\twsdata\octo\test\TOPDANMARK_OCTO_VOUCHER_REQUEST","/InTest/TOPDANMARK_OCTO_VOUCHER_REQUEST_%dato%x.csv",0,0[/url];)
IF rc != 0 THEN GOTO WBERRORHANDLER
Send in UTF-8 format
-
- Posts: 21
- Joined: Tue Dec 15, 2009 8:30 am
Send in UTF-8 format
Last edited by moc on Tue Nov 25, 2014 1:38 pm, edited 1 time in total.
-
- Posts: 12031
- Joined: Thu Oct 11, 2001 1:24 pm
- Display name: Mat (SmartFTP)
- Contact:
Re: Send in UTF-8 format
Please contact support by email. Thank you.