/console with UTF8 support

Advertisement

ozdemircili
Joined:
Posts:
3
Location:
Spain

/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


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://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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,070
Location:
Prague, Czechia

Re: /console with UTF8 support

It the script file uses UTF8 encoding, it must start with UTF8 BOM to make WinSCP recognise that.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum