laziness, impatience, and hubris | |
PerlMonks |
Re: Weird error with Cryprt::Blowfish and Crypt::DESby Anonymous Monk |
on Sep 13, 2010 at 22:13 UTC ( [id://860042]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|