kawanet/XML-TreePP — pull request #1 by xenoterracide (2013-09-11 23:08:08+00:00)
Title: ensure unicode transmitted proprely

This pull request is to alert the author of a problem.

my $ua
= load_class('LWP::UserAgent')->new(
ssl_opts => { verify_hostname => 0 },
);

$xmlrpc->{tpp}->set( lwp_useragent => $ua );
$xmlrpc->{tpp}->set( output_encoding => 'UTF-8' );
$xmlrpc->{tpp}->set( utf8_flag => 1 );

The below hack, is most certainly wrong, but it seems to force the desired behavior. seems like Content-Length may be getting set wrong somewhere, after making this change LWP warns that it's correcting `Content-Length` on the calls that were having problems with transmitting unicode.

I could probably get sample data if it would help fix the problem