phpversionhelp,install
previous,moodle
reload,admin
-thischarset,langconfig
thisdirection,langconfig
thislanguage,langconfig
welcomep10,install
$string['strftimerecentfull'] = '%a, %d %b %Y, %I:%M %p';
$string['strftimetime'] = '%I:%M %p';
$string['thisdirection'] = 'ltr';
-$string['thischarset'] = 'UTF-8';
$string['thislanguage'] = 'English';
$string['thousandssep'] = ',';
$string['thereareno'] = 'There are no {$a} in this course';
$string['thiscategorycontains'] = 'This category contains';
$string['thisdirection'] = 'ltr';
-$string['thischarset'] = 'UTF-8';
$string['thislanguage'] = 'English';
$string['time'] = 'Time';
$string['timezone'] = 'Timezone';
static $langconfigstrs = array('alphabet' => 1, 'backupnameformat' => 1, 'decsep' => 1,
'firstdayofweek' => 1, 'listsep' => 1, 'locale' => 1, 'localewin' => 1,
'localewincharset' => 1, 'oldcharset' => 1, 'parentlanguage' => 1,
- 'thischarset' => 1, 'thisdirection' => 1, 'thislanguage' => 1, 'thousandssep' => 1,
+ 'thisdirection' => 1, 'thislanguage' => 1, 'thousandssep' => 1,
'strftimedate' => 1,
'strftimedatefullshort' => 1,
global $CFG;
static $textlib;
static $newwincharset;
- static $oldcharset;
if(!isset($textlib)) {
$textlib = textlib_get_instance();
}
}
- if(!isset($oldcharset)) {
- $oldcharset = get_string('thischarset');
- }
-
//converting <br /> into newline
$newtext = str_ireplace('<br />', "\n", $text);
$newtext = str_ireplace('<br>', "\n", $newtext);
- return $textlib->convert($newtext, $oldcharset, $newwincharset);
+ return $textlib->convert($newtext, 'UTF-8', $newwincharset);
}
}
function feedback_send_xml_data($data, $filename) {
- $charset = get_string('thischarset');
@header('Content-Type: application/xml; charset=UTF-8');
@header('Content-Disposition: attachment; filename='.$filename);
print($data);
$in_charset = mb_detect_encoding($cell, 'auto');
}
if (empty($in_charset)) {
- $in_charset = get_string('thischarset');
+ $in_charset = 'UTF-8';
}
if ($in_charset != 'ASCII' && function_exists('mb_convert_encoding')) {
$cell = mb_convert_encoding($cell, $options['reportencoding'], $in_charset);
case HOTPOT_NAVIGATION_GIVEUP:
// replace charset , if necessary
// HotPots are plain ascii (iso-8859-1) with unicode chars encoded as HTML entities
- $charset = get_string("thischarset");
- if ($charset == 'iso-8859-1') {
- // do nothing
- } else {
- $hp->html = preg_replace(
- '|<meta[^>]*charset=iso-8859-1[^>]*>|is',
- '<meta http-equiv="Content-Type" content="text/html; charset='.$charset.'" />',
- $hp->html
- );
- }
+ $hp->html = preg_replace(
+ '|<meta[^>]*charset=iso-8859-1[^>]*>|is',
+ '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />',
+ $hp->html
+ );
// no break (continue to print html to browser)
default:
// HOTPOT_NAVIGATION_BUTTONS