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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 12 Jun 2003 20:28:15 -0000


albertel		Thu Jun 12 16:28:15 2003 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  - only set output to ut-8 if browser wants math in utf-8 mode
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.262 loncom/xml/lonxml.pm:1.263
--- loncom/xml/lonxml.pm:1.262	Tue Jun 10 14:17:03 2003
+++ loncom/xml/lonxml.pm	Thu Jun 12 16:28:14 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.262 2003/06/10 18:17:03 matthew Exp $
+# $Id: lonxml.pm,v 1.263 2003/06/12 20:28:14 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -386,7 +386,7 @@
     if (($ENV{'browser.os'} eq 'mac') && (!$ENV{'browser.mathml'})) { 
 	$headerstring.=
 	    '<meta Content-Type="text/html; charset=x-mac-roman">';
-    } elsif (!$ENV{'browser.mathml'}) {
+    } elsif (!$ENV{'browser.mathml'} && $ENV{'browser.unicode'}) {
 	$headerstring.=
 	    '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
     }