Here's my program:
use strict;
use LWP::ConsoleLogger::Easy qw( debug_ua );
use LWP::UserAgent;
my $mech = LWP::UserAgent->new;
my $console_logger = debug_ua( $mech );
$mech->get( 'http://rjbs.manxome.org/tmp/unicode.html' );
I'll leave that URL there, but it contains:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
😄
</body>
</html>
Note the literal non-ASCII character.
When printing the content, I get this to my STDERR:
Wide character in print at /Users/rjbs/.plenv/versions/24.0/lib/perl5/site_perl/5.24.0/Log/Dispatch/Screen.pm line 51.
It sounds like something is getting decoded content, building a table, but never encoding the output.
Here's my program:
I'll leave that URL there, but it contains:
Note the literal non-ASCII character.
When printing the content, I get this to my STDERR:
It sounds like something is getting decoded content, building a table, but never encoding the output.