Antoine Pitrou writes:
 > Stephen J. Turnbull <stephen <at> xemacs.org> writes:
 > > 
 > > But it *does* determine the charset of ErrorDocuments displayed by
 > > Apache.  Users are likely to get somewhat confused if the
 > > ErrorDocuments are in a different charset from your dynamic HTML.
 > 
 > Why would they? The browser picks the encoding from either the HTTP
 > headers or the HTML meta tag; these don't have to be the same for
 > every document served by the same domain.

Don't ask me why; I just know that my experience is that mojibake
happens on some Japanese sites with the default configuration of
Firefox 3.5 or 3.6.  Perhaps it's a bug in Firefox, but I think it's
more likely that folks are setting default charsets incompatibly with
ErrorDocuments.  Either way, it happens.

The point that you're avoiding is that in fact ErrorDocument literals
*do* pick up their charsets from the config file, and therefore that
charset cannot be "decorrelated" with the output charset in some
circumstances.

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to