[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 30 Apr 2003 21:27:58 -0000


albertel		Wed Apr 30 17:27:58 2003 EDT

  Modified files:              
    /loncom/homework	lonhomework.pm 
  Log:
   trying to set document encoding of homework documents to utf8, this might break things, let me know
  
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.119 loncom/homework/lonhomework.pm:1.120
--- loncom/homework/lonhomework.pm:1.119	Thu Apr  3 16:46:27 2003
+++ loncom/homework/lonhomework.pm	Wed Apr 30 17:27:57 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.119 2003/04/03 21:46:27 albertel Exp $
+# $Id: lonhomework.pm,v 1.120 2003/04/30 21:27:57 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -285,18 +285,19 @@
 }
 
 sub setupheader {
-  my $request=$_[0];
-  if ($ENV{'browser.mathml'}) {
-    $request->content_type('text/xml');
-  } else {
-    $request->content_type('text/html');
-  }
-  if (!$Apache::lonxml::debug && ($ENV{'REQUEST_METHOD'} eq 'GET')) {
-    &Apache::loncommon::no_cache($request);
-  }
-  $request->send_http_header;
-  return OK if $request->header_only;
-  return ''
+    my $request=$_[0];
+    if ($ENV{'browser.mathml'}) {
+	$request->content_type('text/xml');
+    } else {
+	$request->content_type('text/html');
+    }
+    $request->content_encoding('UTF-8');
+    if (!$Apache::lonxml::debug && ($ENV{'REQUEST_METHOD'} eq 'GET')) {
+	&Apache::loncommon::no_cache($request);
+    }
+    $request->send_http_header;
+    return OK if $request->header_only;
+    return ''
 }
 
 sub handle_save_or_undo {