Assume that my remote Linux box uses UTF-8 encoding and my local Windows
box uses Cp1252 default encoding.
I'd like to open a ChannelShell session on the remote, end set some
default environment variables including Unicode Characters.
JSch-0.1.37 doesn't allow me to do this, becasue in
RequestEnv#request(), the following is done:
buf.putString(name.getBytes());
buf.putString(value.getBytes());
which uses the local Platform default encoding to encode the Strings, so
I cannot pass my UTF-8 Strings onto the Wire.
It's not a very big problem because most SSH daemons have disabled
environment setting support anyways,
but still it's not nice that this feature is missing. It looks like a
general
Channel.setDefaultEncoding()
command is missing to specify the encoding to use on the channel.
Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users