version 1.32, 2005/02/17 08:51:08
|
version 1.33, 2005/04/18 22:17:45
|
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=undef; |
|
} |
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; |
} |
} |
} |
} |
|
|