Topic "/console with UTF8 support"

Author Message
[View user's profile]

Joined: 2009-05-14
Posts: 3
Location: Spain

I am using winscp without any problems with following commands to sync my servers fotos to a remote server:

F:\SyncFolder\winscp421.exe /console /script=syncscript.txt /log=synclog.txy

syncscript conmtrains:

# Automatically answer all prompts negatively not to stall
# the script on errors
option batch continue
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect
open scp:// -privatekey=F:\SyncFolder\privatekey.ppk
# sync from local to remote
keepuptodate F:\Http\fotos /root/fotos
# Exit WinSCP

My problem is some of the directories in the source folder is being creates using special characters like , since we are in Spain.
When I send using winscp.exe gui the upload is fine and I can see the same in the target server but using the script above is converted to something like ?321.

Is there anyway I can upload these folders using the script above with support utf8?

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26911
Location: Prague, Czechia
It the script file uses UTF8 encoding, it must start with UTF8 BOM to make WinSCP recognise that.
Martin Prikryl

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License