Skip to content

something is missing an encode somewhere #6

@rjbs

Description

@rjbs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions