Help for this page

Select Code to Download


  1. or download this
    use utf8;
    use Encode 'encode';
    my $str = "abc123äöüß";
    print encode cp850 => $str;
    
  2. or download this
    use utf8;
    use Encode; # explicitly use for its binmodes
    use Encode::Locale;
    binmode STDOUT, ":encoding(console_out)";
    my $str = "abc123äöüß";
    print $str;