[JSch-users] File name encoding
Status: Alpha
Brought to you by:
ymnk
From: Viet H. P. <hoa...@ya...> - 2010-11-24 08:23:20
|
Hi, The SFTP specs (http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13) say that with versions from 3 to 5, file names must be encoded in UTF-8; with versions from 6 to 13, file name encoding can be negotiated by the server and the client; while there is no explicit statement for versions from 0 to 2. And, I see the following in method "setFilenameEncoding" in class com.jcraft.jsch.ChannelSftp: ... int sversion=getServerVersion(); if(sversion > 3 && !encoding.equals(UTF8)){ throw new SftpException(SSH_FX_FAILURE, "The encoding can not be changed for this sftp server."); }... Do you think the Jsch code violates the SFTP specs? Regards,Viet |