Page 1 of 1

Send in UTF-8 format

Posted: Tue Nov 25, 2014 12:36 pm
by 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  

Re: Send in UTF-8 format

Posted: Tue Nov 25, 2014 1:37 pm
by mb
Please contact support by email. Thank you.