Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Lost in encodings

by Skeeve (Parson)
on Feb 10, 2020 at 07:48 UTC ( [id://11112720]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        $charset = [ $charset ] unless ref $charset eq 'ARRAY';
            my $charset_input  = shift @$charset || 'US-ASCII';
            my $charset_output = shift @$charset || $charset_input;
    
  2. or download this
    if ($charset_input ne $charset_output) {
        my $perl_string= $charset_input eq '*internal*'
    ...
            : Encode::decode($charste_input, $string);
        $string= Encode::encode($charset_output, $perl_string);
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-24 19:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found