--- loncom/homework/lonhomework.pm 2003/04/03 21:46:27 1.119 +++ loncom/homework/lonhomework.pm 2003/04/30 21:27:57 1.120 @@ -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 setuppermissions { } 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 {