[LON-CAPA-admin] Lost symbols after upgrade to 2.9

Bob Gonzales rgonzal at binghamton.edu
Wed Jul 7 15:20:27 EDT 2010


Stuart,

Thank you for the quick fix!  I went with the loncapa_apache.conf approach.

Hasn't anyone else run into this?  Or, does everyone else just understand
all of this?

Thanks again,

Bob Gonzales
Binghamton University
Chemistry Dept
4400 Vestal Parkway East
Binghamton, NY  13902
(607)777-2698
rgonzal at binghamton.edu



-----Original Message-----
From: lon-capa-admin-admin at mail.lon-capa.org
[mailto:lon-capa-admin-admin at mail.lon-capa.org] On Behalf Of Stuart Raeburn
Sent: Wednesday, July 07, 2010 12:19 PM
To: lon-capa-admin at mail.lon-capa.org
Subject: Re: [LON-CAPA-admin] Lost symbols after upgrade to 2.9

Bob,

A change was made for LON-CAPA 2.9 to enforce character encoding of  
UTF-8 for all browsers, but sadly browser detection was not updated  
for Internet Explorer to appropriately set the browser.unicode  
environment variable.

As a result when TTH was rendering tex to HTML (as it does for text  
within <chem></chem> tags and text in the left column in the symbols  
help page) there was an inconsistency between the charset included in  
the web page's meta tag and the target for which TTH was generating  
HTML behind the scenes.

There are two ways to address this.

Either:

(a) Modify line 1455 in /etc/httpd/conf/loncapa_apache.conf

In that line replace this string:

explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999:9999

with:

explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999:5

or

(b) Leave /etc/httpd/conf/loncapa_apache.conf unchanged and instead  
modify lines 301 - 304 in /home/httpd/lib/perl/Apache/lonlocal.pm

by removing the # at the start of each line which comments out the  
line, so the code will revert to its pre-2.9.0 state.

Change:

     #    if ($Apache::lonnet::env{'browser.os'} eq 'win' &&
     #      $Apache::lonnet::env{'browser.type'} eq 'explorer') {
     #        $default='ISO-8859-1';
     #    }

to

           if ($Apache::lonnet::env{'browser.os'} eq 'win' &&
             $Apache::lonnet::env{'browser.type'} eq 'explorer') {
               $default='ISO-8859-1';
           }


Regardless of whether you adopt (a) or (b) you will need to reload the  
Apache web server after you make the change:

/etc/init.d/httpd reload

Stuart Raeburn
MSU LON-CAPA group

Quoting Bob Gonzales <rgonzal at binghamton.edu>:

> The upgrade to 2.9 has been pretty pain less.  Thanks!
>
> I do have one problem that is browser related that I haven't been
able to
> figure out.  We use the <chem></chem> tags a lot and I code the
right arrow
> in the <chem></chem> just using the 2 characters - and > to get
->.  This
> worked fine until the upgrade.  Now, in Firefox, I still get the
right arrow
> but in IE (7 or 8) I get a ?.  I noticed a lot of ?'s for symbols
in the
> table you get when you click on 'other symbols' when editing a
problem.
>
> The default code page being used in both my IE and my Firefox is
UTF-8.
>
> Thanks,
> Bob Gonzales
> Binghamton University
> Chemistry Dept
> 4400 Vestal Parkway East
> Binghamton, NY  13902
> (607)777-2698
> rgonzal at binghamton.edu
>
>
>
>
> _______________________________________________
> LON-CAPA-admin mailing list
> LON-CAPA-admin at mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin



_______________________________________________
LON-CAPA-admin mailing list
LON-CAPA-admin at mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin





More information about the LON-CAPA-admin mailing list