Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

ozdemircili

/console with UTF8 support

Hi,

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

The syncscript contains:
# 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://root@xxx.xxx.xxx -privatekey=F:\SyncFolder\privatekey.ppk
# sync from local to remote
keepuptodate  F:\Http\fotos /root/fotos
# Exit WinSCP
exit

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?

Thanks