I have found this to be true whenever I am using XML::Simple, as XML by
definition returns UTF8 characters.
Handling of UTF8 is not necessarily required, although it would be nice
if UTF8 were automatically detected, for cleanliness and compatibility.
Attached is example code and example XML file.
The problem is that even when a doctype is set, LibXML returns UTF8,
which is expected and intentional.
As time goes forward and UTF8 becomes more prominent in the landscape,
it would be beneficial to not require a UTF8 downgrade in order to
perform SSH tasks in a more automated manner.
On Sat Sep 26 09:23:31 2009, DOLMEN wrote:
Show quoted text> Le Ven. Aoû. 28 13:42:26 2009, james.kingston@gmail.com a écrit :
> > I have been having this persistent problem when calling $ssh->cmd($s):
> > input must be 8 bytes long at
> > /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Crypt/DES.pm
> > line 57
> >
> > My attempts will all succeed until I attempt to parse XML with either
> > XML::Simple or XML::LibXML. After that, no cmd() calls work.
>
>
> I'm not the maintainer of this module (not even a user), but your bug
> report would get more attention if you provide more information:
> - which version of Net::SSH::Perl you are using
> - which SSH protocol version you are using (the host you are
connecting to)
Show quoted text> - a simple program that could be used as a test case