--- loncom/xml/lonplot.pm 2012/07/16 10:09:36 1.160 +++ loncom/xml/lonplot.pm 2012/07/17 09:54:48 1.161 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Dynamic plot # -# $Id: lonplot.pm,v 1.160 2012/07/16 10:09:36 foxr Exp $ +# $Id: lonplot.pm,v 1.161 2012/07/17 09:54:48 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2004,7 +2004,8 @@ sub write_gnuplot_file { $linestyle_index++; # Each curve get a unique linestyle. } # Write the output to a file. - open (my $fh,">$tmpdir$filename.data"); + open (my $fh, "> $tmpdir$filename.data"); + binmode($fh, ':utf8'); print $fh $gnuplot_input; close($fh); # That's all folks.