Posh-SSH
Posh-SSH copied to clipboard
Set-SFTPItem issue with name containing accent
If I transfer a file containing accent : DIRECTION_GĖNĖRALE.pdf At server side I got a filename containing invalid character: DIRECTION_GÄ–NÄ–RALE.pdf
Can you provide more info in terms of the systems, encoding ...etc, I'm not able to replicate this problem against a Linux server running OpenSSH
╭─ pwsh ~ 12:06:56
╰─❯ Set-SFTPItem -Path D:\DIRECTION_GĖNĖRALE.txt -Destination /tmp -SessionId 1 -Force
╭─ pwsh ~ 12:09:45
╰─❯ Get-SFTPChildItem -SessionId 1 -Path "/tmp"
FullName : /tmp/this-is-a-test
LastAccessTime : 4/17/2023 6:11:06 AM
LastWriteTime : 4/17/2023 6:11:39 AM
Length : 4096
UserId : 1000
FullName : /tmp/klippy_uds
LastAccessTime : 4/16/2023 7:38:02 PM
LastWriteTime : 4/16/2023 7:38:02 PM
Length : 0
UserId : 1000
FullName : /tmp/.ICE-unix
LastAccessTime : 4/15/2023 9:17:04 PM
LastWriteTime : 4/15/2023 9:17:04 PM
Length : 4096
UserId : 0
FullName : /tmp/.Test-unix
LastAccessTime : 4/15/2023 9:17:04 PM
LastWriteTime : 4/15/2023 9:17:04 PM
Length : 4096
UserId : 0
FullName : /tmp/DIRECTION_GĖNĖRALE.txt
LastAccessTime : 4/20/2023 12:09:45 PM
LastWriteTime : 4/20/2023 12:09:45 PM
Length : 0
UserId : 1000