> By the way, I have not heard the answer to my question,
>   > If that method is added, are you really planning to use it 
>   > in your product?

Yes, absolutely, sorry for not being clear about that.
Our product requires that the user is able to manually
specify the encoding to be used for remote file and 
directory names, and I think that overriding the encoding
in Jsch is the only way to do this with SSH connections.

> Are you planning to enable and disable that functionality
> according to Session#getServerVersion() and
> keep and update the database for it internally, forever?

Hm, that's a good question, I'm not sure. I guess I'd probably
not keep such a database, and use "UTF-8" as the encoding to
use by default; so users would override it only if they see 
strange unwanted effects. Basically, not put in any magic 
but have the user manually specify the encoding if they 
don't like the results they have with UTF-8.

I might want to check remote environment variables to
understand the remote default encoding at some point in 
the future.

I could also imagine some kind of check, e.g. create a file
with non-UTF8 encoding through Sftp and then read the result
through a shell. I should be able to discover whether the
server recodes or not.

Honestly speaking, I'm not the expert about that stuff
but we've had bug reports from Hebrew people who say that
it is equally common in their country to have UTF-8
encodign or ASCII-based encoding on their hosts (50%
each). Similar in Russia. See, for instance
https://bugs.eclipse.org/bugs/show_bug.cgi?id=179937#c7

Cheers,
--
Martin Oberhuber
Wind River Systems, Inc.
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm 

-------------------------------------------------------------------------
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

Reply via email to