1
0
Эх сурвалжийг харах

write files with utf8 locale

root 2 жил өмнө
parent
commit
afc29e3054
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  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);