[LON-CAPA-cvs] cvs: loncom /localize lonlocal.pm
bisitz
bisitz@source.lon-capa.org
Fri, 20 Mar 2009 18:26:34 -0000
bisitz Fri Mar 20 18:26:34 2009 EDT
Modified files:
/loncom/localize lonlocal.pm
Log:
Character encoding UTF-8 needed for the whole LON-CAPA system
Revoke changes rev. 1.33 and rev. 1.34
(Set browser to ISO-8859-1 encoding, if client OS is MS Windows and browser type is Internet Explorer)
Current tests can _not_ confirm a difference
(tested with LON-CAPA CVS head (2009-03-20 19:00 GMT+01),
Windows 2000 SP4 and MSIE 6.0 / Windows XP Prof. SP3 and MSIE 7.0)
Details: Bugzilla 5702 vs. 2189 and 4067
Index: loncom/localize/lonlocal.pm
diff -u loncom/localize/lonlocal.pm:1.55 loncom/localize/lonlocal.pm:1.56
--- loncom/localize/lonlocal.pm:1.55 Thu Feb 5 10:39:09 2009
+++ loncom/localize/lonlocal.pm Fri Mar 20 18:26:34 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Localization routines
#
-# $Id: lonlocal.pm,v 1.55 2009/02/05 10:39:09 bisitz Exp $
+# $Id: lonlocal.pm,v 1.56 2009/03/20 18:26:34 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -303,10 +303,13 @@
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';
- }
+# UTF-8 character encoding needed for the whole LON-CAPA system
+# (interface language and homework problem content)
+# See Bugzilla 5702 vs. 2189 and 4067
+# if ($Apache::lonnet::env{'browser.os'} eq 'win' &&
+# $Apache::lonnet::env{'browser.type'} eq 'explorer') {
+# $default='ISO-8859-1';
+# }
if ($lh) {
my $enc=$lh->maketext('char_encoding');
return ($enc eq 'char_encoding'?$default:$enc);