Error synchronizing paths with german umlauts (ä,ö,ü)

Advertisement

sirinfinity
Joined:
Posts:
1
Location:
Switzerland

Error synchronizing paths with german umlauts (ä,ö,ü)

I was trying to synchronize a FTP with a local folder that contains ö in folder name. Currently WinSCP gives me an Error because it can't collect the file list from that path but in the logs I can see that WinSCP replaces the ö with ÷.

Batch
"synchronize local ""W:\Shared With Me\PFM-Trading\PFM - Trading\Börsen\exCH\FTP"" ""/electricity/""" ^
Logs
> 2023-05-10 03:35:36.089 Script: synchronize local "W:\Shared With Me\PFM-Trading\PFM - Trading\B÷rsen\exCH\FTP" "/electricity/"
< 2023-05-10 03:35:36.089 Script: Vergleichen …
. 2023-05-10 03:35:36.089 Collecting synchronization list for local directory 'W:\Shared With Me\PFM-Trading\PFM - Trading\B÷rsen\exCH\FTP' and remote directory '/electricity/', mode = Local, params = 0x2 (NoConfirmation), file mask = ''
* 2023-05-10 03:35:36.092 (EOSExtException) Fehler beim Abrufen der Dateiliste für „W:\Shared With Me\PFM-Trading\PFM - Trading\B÷rsen\exCH\FTP\*.*“.
* 2023-05-10 03:35:36.092 Systemfehler. Code: 3.
* 2023-05-10 03:35:36.092 Das System kann den angegebenen Pfad nicht finden 

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Error synchronizing paths with german umlauts (ä,ö,ü)

I do not think this is WinSCP issue. It's rather that your batch file is in wrong encoding.
I'd suggest you store the batch file in UTF-8 encoding and use chcp 65001 command before you use the non-ASCII characters.
For details, see How can I use Unicode characters on the Windows command line?

Or instead, use separate WinSCP script in UTF-8 encoding.

Similar question:
Commande LCD avec nom de répertoire et caractères accentués

Reply with quote

Advertisement

You can post new topics in this forum