Send in UTF-8 format

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
Post Reply
moc
Posts: 21
Joined: Tue Dec 15, 2009 8:30 am

Send in UTF-8 format

Post by moc » Tue Nov 25, 2014 12:36 pm

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  
Last edited by moc on Tue Nov 25, 2014 1:38 pm, edited 1 time in total.

mb
Posts: 12030
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Send in UTF-8 format

Post by mb » Tue Nov 25, 2014 1:37 pm

Please contact support by email. Thank you.

Post Reply