[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 11 Apr 2003 16:03:26 -0000
albertel Fri Apr 11 12:03:26 2003 EDT
Modified files:
/loncom/xml lonxml.pm
Log:
- setting document encoding to utf-8 if not a mac
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.247 loncom/xml/lonxml.pm:1.248
--- loncom/xml/lonxml.pm:1.247 Mon Apr 7 18:28:08 2003
+++ loncom/xml/lonxml.pm Fri Apr 11 12:03:26 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.247 2003/04/07 22:28:08 albertel Exp $
+# $Id: lonxml.pm,v 1.248 2003/04/11 16:03:26 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -380,8 +380,11 @@
sub fontsettings() {
my $headerstring='';
if (($ENV{'browser.os'} eq 'mac') && (!$ENV{'browser.mathml'})) {
- $headerstring.=
- '<meta Content-Type="text/html; charset=x-mac-roman">';
+ $headerstring.=
+ '<meta Content-Type="text/html; charset=x-mac-roman">';
+ } elsif (!$ENV{'browser.mathml'}) {
+ $headerstring.=
+ '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
}
return $headerstring;
}