[
https://issues.apache.org/jira/browse/SSHD-1052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17177564#comment-17177564
]
Lyor Goldstein commented on SSHD-1052:
--------------------------------------
SSHD uses UTF-8 by default as this is the standard for strings. However, it is
your code's responsibility to make sure that the file name string is indeed
UTF-8. Some O/S (and Windows included) do not always provide the string in the
proper encoding. In other words, calling {{file.getName()}} sometimes returns a
string that when converted to UTF-8 yields malformed results. We have
encountered this in past with Chinese characters and have implemented a "hack"
for SFTP - see [SFTP sent/received names
encoding|https://github.com/apache/mina-sshd/blob/master/docs/sftp.md#sftp-sentreceived-names-encoding]
> Not able to transfer Filenames with Umlauts using SFTP Apache SSHD Server
> -------------------------------------------------------------------------
>
> Key: SSHD-1052
> URL: https://issues.apache.org/jira/browse/SSHD-1052
> Project: MINA SSHD
> Issue Type: New Feature
> Reporter: Rohini Jori
> Priority: Major
> Attachments: Error_logs.png, Winscp_error_log.png, code_snapshot.png,
> myäöü, testlinuxöäü.txt
>
>
> Error thrown when we transfer Filenames with Umlauts using SFTP Apache SSHD
> Server
> I tried putting attached files by connecting to SFTP Apache SSHD Server using
> filezilla / winscp.
> Below error is shown:
> Error: Reading directory .: received unknown error code 20 with description
> 'Malformed input or input contains unmappable characters: myäöü'
> Command: put "C:\Users\Vinitha.Palanethra\Desktop\5265_2\myäöü"
> "myäöü"
> Error: FATAL ERROR: Received unexpected end-of-file from SFTP server
> Error: File transfer failed
>
> We found that this is not working only in case the locale "LANG" value is
> "en_US".
> Because this is working when the locale "LANG" value is "en_US.UTF-8".
> So is there any way to set the locale value to "en_US.UTF-8" in sshd?
>
> Please see the attached screenshot for reference.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]