Merging language-pack-related updates from Eloy's MOODLE_16_UTF8 branch.

Do not use that branch any more!!
This commit is contained in:
moodler
2006-01-04 08:23:42 +00:00
parent 678943cba7
commit 6aaa17c7cc
23 changed files with 11442 additions and 125 deletions
+2 -2
View File
@@ -177,7 +177,7 @@ function send_file($path, $filename, $lifetime=86400 , $filter=false, $pathisstr
if (!$filter) {
@header('Content-length: '.$filesize);
if ($mimetype == 'text/plain') {
@header('Content-type: text/plain; charset='.get_string('thischarset')); //add encoding
@header('Content-type: text/plain; charset='.current_charset()); //add encoding
} else {
@header('Content-type: '.$mimetype);
}
@@ -208,7 +208,7 @@ function send_file($path, $filename, $lifetime=86400 , $filter=false, $pathisstr
$output = '<pre>'. format_text($text, FORMAT_MOODLE, $options, $courseid) .'</pre>';
@header('Content-length: '.strlen($output));
@header('Content-type: text/html; charset='. get_string('thischarset')); //add encoding
@header('Content-type: text/html; charset='. current_charset()); //add encoding
echo $output;
} else { // Just send it out raw
@header('Content-length: '.$filesize);