version 1.32, 2005/02/17 08:51:08
|
version 1.34, 2005/06/22 05:04:51
|
Line 206 sub current_language {
|
Line 206 sub current_language {
|
# ============================================================== What encoding? |
# ============================================================== What encoding? |
|
|
sub current_encoding { |
sub current_encoding { |
|
my $default='UTF-8'; |
|
if ($Apache::lonnet::env{'browser.os'} eq 'win' && |
|
$Apache::lonnet::env{'browser.type'} eq 'explorer') { |
|
$default='ISO-8859-1'; |
|
} |
if ($lh) { |
if ($lh) { |
my $enc=$lh->maketext('char_encoding'); |
my $enc=$lh->maketext('char_encoding'); |
return ($enc eq 'char_encoding'?'UTF-8':$enc); |
return ($enc eq 'char_encoding'?$default:$enc); |
} else { |
} else { |
return 'UTF-8'; |
return $default; |
} |
} |
} |
} |
|
|