Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Weird error with Cryprt::Blowfish and Crypt::DES

by Anonymous Monk
on Sep 13, 2010 at 22:13 UTC ( #860042=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Weird error with Cryprt::Blowfish and Crypt::DES
Re^2: Weird error with Cryprt::Blowfish and Crypt::DES
by Anonymous Monk on Sep 04, 2011 at 13:02 UTC
    Many thanks I had the same problem when using XML::Simple. Encode::from_to($remotePass,'utf8','iso-8859-1'); did the "magic"
      Thanks it works with the tips above :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://860042]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-10-23 17:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (126 votes), past polls