Re: Error code 2 (SFTP) with a accented directory name
@igricheff: PowerShell script should use UTF-8 (with BOM!) encoding (preferred) or Windows/ANSI encoding (legacy):
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_character_encoding
So not really ISO. Though ISO 8859-1 is rather similar to Windows/ANSI 1252. That's probably why it worked for you.
Though none of this is that this topic is actually about. This topic is about WinSCP GUI. PowerShell script encoding has nothing to do with WinSCP (not even with WinSCP .NET assembly).
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_character_encoding
So not really ISO. Though ISO 8859-1 is rather similar to Windows/ANSI 1252. That's probably why it worked for you.
Though none of this is that this topic is actually about. This topic is about WinSCP GUI. PowerShell script encoding has nothing to do with WinSCP (not even with WinSCP .NET assembly).