Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Is there some universal Unicode+UTF8 switch?

by daxim (Curate)
on Sep 01, 2019 at 17:17 UTC ( #11105384=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use LWP::UserAgent qw();
    use JSON::MaybeXS qw(decode_json);
    ...
    my $json_OCTETS = $res->content;
    my $all_users_CHARACTERS = decode_json $json_OCTETS;
    my $continue_aufrom_CHARACTERS = $all_users_CHARACTERS->{continue}{auf
    +rom};
    
  2. or download this
    use Encode qw(encode);
    my $continue_aufrom_OCTETS = encode('UTF-8', $continue_aufrom_CHARACTE
    +RS, Encode::FB_CROAK);
    STDOUT->print($continue_aufrom_OCTETS);
    
  3. or download this
    binmode STDOUT, ':encoding(UTF-8)';
    STDOUT->print($continue_aufrom_CHARACTERS);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11105384]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2020-05-25 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (145 votes). Check out past polls.

    Notices?