Hello Jason,
Thanks.
Documentation has been updated to reflect that limitation.
Now in SVN 361.
Cheers.
On Monday, December 03, 2012 04:10:27 PM you wrote:
Show quoted text> Mon Dec 03 16:10:26 2012: Request 81668 was acted upon.
> Transaction: Ticket created by OAXLIN
> Queue: Net-SSLeay
> Subject: utf-8 data is corrupted
> Broken in: 1.49
> Severity: (no value)
> Owner: Nobody
> Requestors: OAXLIN@cpan.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=81668 >
>
>
> Net::SSLeay::post_https corrupts data if it is utf-8 encoded
>
> Solution use utf8::downgrade on data before sending.
>
> IE
>
> if ( $] ge '5.008' ) {
> utf8::downgrade($content, 1)
> or Carp::croak(q/Wide character in request message body/);
> }
>
> Example of content that becomes corrupt:
>
> my $content = '迈克尔';
> utf8::upgrade($msg);
>
> my ($page, $response, %reply_headers)
> = Net::SSLeay::post_https(
> $server,
> 443,
> $uri,
> Net::SSLeay::make_headers(
> 'Content-Type' => 'text/xml; charset:utf-8',
> ),
> $content
> );
--
Mike McCauley mikem@open.com.au
Open System Consultants Pty. Ltd
9 Bulbul Place Currumbin Waters QLD 4223 Australia
http://www.open.com.au
Phone +61 7 5598-7474 Fax +61 7 5598-7070
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS, NetWare etc.