Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 browsing the Monastery: (6)
As of 2015-07-04 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls