Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Substitute and converting to UTF8

by choroba (Cardinal)
on Jan 08, 2021 at 14:01 UTC ( [id://11126604]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $csv = Text::CSV_XS->new ({ binary => 1, auto_diag => 1 });
    #                              ~~~~~~~~~~~
    open my $fh, "<:encoding(utf8)", "test.csv" or die "test.csv: $!";
    #              ~~~~~~~~~~~~~~~
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    my $structure = decode_json($encoded);
    binmode *STDOUT, ':encoding(UTF-8)';
    say $structure->{'yellow horse'};
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-25 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found