Parcourir la source

write files with utf8 locale

root il y a 2 ans
Parent
commit
afc29e3054
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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);