moc
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
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