Help for this page

Select Code to Download


  1. or download this
    open(my $fh, '>', ...) or die ...;
    my $buf = encode('UTF-8', $text);
    sysrwite($fh, $buf);  # Or: print $fh $buf;
    
  2. or download this
    open(my $fh, '>:encoding(UTF-8)', ...) or die ...; 
    sysrwite($fh, $text);  # Or: print $fh $text;
    
  3. or download this
    binmode($fh, ':encoding(UTF-8)');
    sysrwite($fh, $text);  # Or: print $fh $text;