sotona has asked for the wisdom of the Perl Monks concerning the following question:

Hello fellow monks,

Today I found quite a weird problem:

$mech->save_content($filename, binmode => ':encoding(UTF-8)');

Complains about Wide character in print but

$mech->save_content($filename, binmode => ':raw:utf8');

works well (i.e. no complaints). what's wrong with ':encoding(UTF-8)' layer?

Sapienti sat.

Replies are listed 'Best First'.
Re: WWW::Mechanize and PerlIO layers
by Anonymous Monk on Mar 18, 2016 at 00:38 UTC
    It probably means your WWW::Mechanize, LWP, HTTP::Request.... are too old, upgrade