in reply to Weird error with Cryprt::Blowfish and Crypt::DES
I've run into this problem too in the past. If you ever parse text from an XML document and try to send it via Net::SSH::Perl, you will likely run into the "8 bytes" problem. I think it's because XML by default is encoded as UTF-16 or something like that. I used this method:
Encode::from($text,'utf16','iso-8859-1');
where $text is the data/command I send using Net::SSH::Perl.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Weird error with Cryprt::Blowfish and Crypt::DES
by Anonymous Monk on Sep 04, 2011 at 13:02 UTC | |
by Anonymous Monk on Jan 28, 2013 at 17:09 UTC |
In Section
Seekers of Perl Wisdom