diff --git a/mod/resource/type/file/resource.class.php b/mod/resource/type/file/resource.class.php index aaf4700c154..1f0306e6be3 100644 --- a/mod/resource/type/file/resource.class.php +++ b/mod/resource/type/file/resource.class.php @@ -348,10 +348,15 @@ function display() { $frameset = optional_param( 'frameset','' ); if (empty($frameset) and !$embedded and !$inpopup and ($resource->options == "frame")) { + if (!empty($CFG->unicode)) { + $encoding = 'utf-8'; + } else { + $encoding = get_string('thischarset'); + } echo "\n"; echo "\n"; echo ''; - echo ''; + echo ''; echo "{$course->shortname}: ".strip_tags(format_string($resource->name,true))."\n"; echo "resource_framesize,*\">"; echo "id}&type={$resource->type}&frameset=top\" />";