Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Help needed understanding unicode in perl

by ikegami (Patriarch)
on Dec 11, 2009 at 19:18 UTC ( [id://812419] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    use open ':std', ':locale';
  2. or download this
    my $enc = ...[ get encoding from locale ]...;
    binmode STDIN,  ":encoding($enc)";
    binmode STDOUT, ":encoding($enc)";
    binmode STDERR, ":encoding($enc)";