Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set-SFTPItem issue with name containing accent #525

Open
jejemorg opened this issue Apr 20, 2023 · 1 comment
Open

Set-SFTPItem issue with name containing accent #525

jejemorg opened this issue Apr 20, 2023 · 1 comment

Comments

@jejemorg
Copy link

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

@darkoperator
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants