Sfoglia il codice sorgente

write files with utf8 locale

root 2 anni fa
parent
commit
afc29e3054
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      scripts/Rstat/main.pm

+ 2 - 0
scripts/Rstat/main.pm

@@ -100,6 +100,8 @@ if ($append) {
     open (LG,">$f_name") || die("Error open file $f_name!!! die...");
     }
 
+binmode(LG,':utf8');
+
 if (ref($cmd) eq 'ARRAY') {
     foreach my $row (@$cmd) {
 	next if (!$row);