See this discussion:
http://moodle.org/mod/forum/discuss.php?d=52004
This will fix the error:
RCS file: /cvsroot/moodle/moodle/mod/resource/type/file/resource.class.php,v
retrieving revision 1.37.2.1
diff -u -r1.37.2.1 resource.class.php
— mod/resource/type/file/resource.class.php 16 Jun 2006 09:41:41 -0000 1.37.2.1
+++ mod/resource/type/file/resource.class.php 5 Oct 2006 10:08:40 -0000
@@ -351,6 +351,7 @@
$frameset = optional_param( 'frameset','' );
if (empty($frameset) and !$embedded and !$inpopup and ($resource->options == "frame")) {
$encoding = current_charset();
+ @header('Content-Type: text/html; charset=' . $encoding);
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">\n";
echo "<html dir=\"ltr\">\n";
echo '<head>';