Subject: | RPC::XML::Client crashing on unicode input |
A call to XML::RPC::Client->send_request crashed when user input
included a unicode elipses (…) and this had been decoded into perl's
internal character representation.
On 0.73, the error is:
Error: Wide character in subroutine entry at /usr/share/perl5/RPC/XML.pm
line 402.
On 0.60, it is instead:
Error: HTTP::Message content must be bytes at
/usr/share/perl5/RPC/XML/Client.pm line 308
I was able to work around this by calling encode_utf8 on all user-
supplied data in the RPC request, but I think it's hard to remember to
do that, and it's very suprising since unicode encoding is common in
XML.