Help for this page

Select Code to Download


  1. or download this
    binmode STDIN,  ":utf8";
    binmode STDOUT, ":utf8";
    
  2. or download this
    binmode STDIN,  ":encoding(UTF-8)";
    binmode STDOUT, ":encoding(UTF-8)";
    binmode STDERR, ":encoding(UTF-8)";
    
  3. or download this
    use open ':std', ':encoding(UTF-8)';
    
  4. or download this
    use open ':std', ':locale';
    
  5. or download this
    open(IN, "<utf8", "sample.txt");
    
  6. or download this
    open(IN, "<:encoding(UTF-8)", "sample.txt");
    
  7. or download this
    use open IO => ':encoding(UTF-8)';
    
  8. or download this
    use open IO => ':locale';
    
  9. or download this
    use utf8;