Hello, I'm wondering if anybody thought about the case yet where I'd like to transfer files via Sftp, where the file names Use non-ASCII foreign language characters, and the character Encoding on the local system is different than the remote.
Say, I want to transfer from a Windows box to a Linux box. On Windows, my encoding is Cp1252 On remote Linux, my encoding is UTF-8 I want to transfer file "möchte" Currently, channel always seems to encode Java Unicode Strings With Platform default encoding (Cp1252 in my case). On the Remote, file names will not appear as expected. Things get worse when I have an application that should create Files on the remote where the names can only be expressed as UTF-8 But not in the local default encoding (for instance, turkish Characters or Japanese). Creating file "ağb" Is encoded by Cp1252 as "a?b" But I cannot create such files on the remote To fix this, I think there should be Channel.setControlEncoding(String encoding) So I can specify the encoding to use forr file and Path names on the remote. At the time the Java unicode String for arguments is converted to byte arrray, it Should do so with the default encoding specified by me. Any thoughts? Thanks Martin -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Atsuhiko Yamanaka Sent: Wednesday, September 12, 2007 4:41 PM To: [EMAIL PROTECTED] Cc: jsch-users@lists.sourceforge.net Subject: Re: [JSch-users] NoSuchAlgorithmException in ssh Hi, +-From: Conrad =?utf-8?q?Berh=C3=B6rster?= <[EMAIL PROTECTED]> -- |_Date: Wed, 12 Sep 2007 11:34:30 +0200 ____________________ | |I have used the ubuntu version java version "1.4.2" gij (GNU |libgcj) version 4.1.0 (Ubuntu 4.1.0-1ubuntu8) | |the actual list of providers is |SUN |SunRsaSign |SunJSSE |SunJCE |SunJGSS |SunSASL |XMLDSig |SunPCSC I guess that above list must be from Sun's JRE. Is it right? Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 +1-415-578-3454 Fax +81-22-224-8773 Skype callto://jcraft/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users