Posh-SSH icon indicating copy to clipboard operation
Posh-SSH copied to clipboard

Set-SFTPItem issue with name containing accent

Open jejemorg opened this issue 2 years ago • 1 comments

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

jejemorg avatar Apr 20 '23 16:04 jejemorg

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

darkoperator avatar Apr 20 '23 16:04 darkoperator