[ https://issues.apache.org/jira/browse/SSHD-1131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17291191#comment-17291191 ]
Thomas Wolf commented on SSHD-1131: ----------------------------------- SSHD-1132 isn't going to help you with that Tectia client. That feature is not available in SFTP V3, it needs SFTP V6. Tectia is a commercial product under active development. If Tectia doesn't support UTF-8 file names and SFTP V6, it's simply outdated. Get them to update that, then tell those clients of yours to install that new version of Tectia client. Otherwise, bite the bullet and modify sshd code to handle Tectia client as is. Note that you won't be able to round-trip encoding properly; a server that uses ISO-8859-1 will give clients trouble if it ever has a file with a non-ISO-8859-1 character in the name on the server's file system. Clients may not be able to work properly with such files. And if you have other SSH clients that expect UTF-8, they will get into trouble if the server sends them something else. Or get your clients to use a different SFTP client. There _are_ alternatives. > Filenames containing Norwegian Characters not allowed over SFTP in Tectia > client > -------------------------------------------------------------------------------- > > Key: SSHD-1131 > URL: https://issues.apache.org/jira/browse/SSHD-1131 > Project: MINA SSHD > Issue Type: New Feature > Reporter: Susmit Sarkar > Priority: Major > Labels: mina, sshd > Attachments: image-2021-02-24-15-38-39-337.png > > > Hi, > Filenames containing Norwegian, Spanish, French, and German Characters not > allowed over SFTP in Tectia client, names are getting messed up > How can I override the decoding charset in *SshServer* : > DecodingCharset is present for SftpClient: > client.setNameDecodingCharset(Charset.forName("ISO-8859-8")); > by default it uses UTF-8 > The SftpClient exposes a get/setNameDecodingCharset method which enables the > user to modify the charset - even while the SFTP session is in progress > After the file is uploaded the Norwegian characters in the filename are > replaced with non-readable characters. > Can we configure the SshServer to override the decoding charset from the > default UTF-8? Is there any API to set the SFTP CharsetEncoding (Set the > default encoding for filenames in SFTP sessions) > !image-2021-02-24-15-38-39-337.png! -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org