Subject: | HTTP::Request::Common url encoding strips out wide characters |
When passing a wide character to HTTP::Request::Common POST (for
instance), the character is stripped out when it's url-encoded.
Minimal example:
my $req = POST 'http://myurl.com', {r=>"test\x{101}"};
print $req->{_content} . "\n"; # prints "r=test"
The simple workaround is to encode any strings as utf8 before passing
them to HTTP::Request::Common, but this still seems like a bug to me.
(Tested in perl 5.10.1).