[LON-CAPA-cvs] cvs: loncom /xml lonplot.pm

foxr foxr at source.lon-capa.org
Mon Jul 9 07:11:48 EDT 2012


foxr		Mon Jul  9 11:11:48 2012 EDT

  Modified files:              
    /loncom/xml	lonplot.pm 
  Log:
  BZ 2886  - Fix utf-8 encoding in gnuplot.
  
  
Index: loncom/xml/lonplot.pm
diff -u loncom/xml/lonplot.pm:1.158 loncom/xml/lonplot.pm:1.159
--- loncom/xml/lonplot.pm:1.158	Wed Jul  4 11:09:22 2012
+++ loncom/xml/lonplot.pm	Mon Jul  9 11:11:47 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Dynamic plot
 #
-# $Id: lonplot.pm,v 1.158 2012/07/04 11:09:22 foxr Exp $
+# $Id: lonplot.pm,v 1.159 2012/07/09 11:11:47 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1653,6 +1653,7 @@
 	$gnuplot_input .= "set encoding iso_8859_1\n"; # Get access to extended font.
 
     }
+    $gnuplot_input .= "set encoding utf8\n";
     # cartesian or polar plot?
     if (lc($Apache::lonplot::plot{'plottype'}) eq 'polar') {
         $gnuplot_input .= 'set polar'.$/;
@@ -1929,7 +1930,7 @@
     }
     # Write the output to a file.
     open (my $fh,">$tmpdir$filename.data");
-    binmode($fh, ":utf8");
+    # binmode($fh, ":utf8");
     print $fh $gnuplot_input;
     close($fh);
     # That's all folks.




More information about the LON-CAPA-cvs mailing list