Subject: | error sending a request in perl 5.10.0 containing utf-8 data using the string data type |
in perl 5.10.0 SOAP::Lite does not correctly encode a utf-8 string as a
string data type in the soap envelope.
running the following command in perl 5.10.0:
perl -MSOAP::Lite -e'SOAP::Lite->new(proxy =>
"http://example.com")->utf8Test(SOAP::Data->new(type => "string", value
=> "\x{263A}"))'
produces the following error:
HTTP::Message content must be bytes at
/Library/Perl/5.10.0/SOAP/Transport/HTTP.pm line 204
The following modules are installed:
SOAP::Lite 0.710.10
LWP 5.834
It appears that the string returned by pack("C0A*", $envelope) still has
the utf-8 flag set in perl 5.10.0
-Daniel