Character Encoding corner case

The python.org server seems to be serving this page: http://docs.python.org/library/curses.ascii.html using the "us-ascii" character encoding in the headers... which causes things like the dash in the page title, and the paragraph mark "link to this section" link in the header, to display incorrectly (at least in Firefox and Chrome, the browsers I have available to test it in). It doesn't appear to be happening on any other pages... I think the web server is just guessing the content type based on the filename. -- Phlip <link rel="signature" type="text/hilarious" href="/funnysig.txt" />

Hello Phillip, I'm adding in the loop the -www group, which might give some help on the problem. Regards, Sandro On Fri, Aug 24, 2012 at 12:22 PM, Phillip <phlip@mrphlip.com> wrote:
The python.org server seems to be serving this page: http://docs.python.org/library/curses.ascii.html using the "us-ascii" character encoding in the headers... which causes things like the dash in the page title, and the paragraph mark "link to this section" link in the header, to display incorrectly (at least in Firefox and Chrome, the browsers I have available to test it in).
It doesn't appear to be happening on any other pages... I think the web server is just guessing the content type based on the filename.
-- Phlip
<link rel="signature" type="text/hilarious" href="/funnysig.txt" />
_______________________________________________ docs mailing list docs@python.org http://mail.python.org/mailman/listinfo/docs
-- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi

Am 31.08.12 16:41, schrieb Sandro Tosi:
Hello Phillip, I'm adding in the loop the -www group, which might give some help on the problem.
Regards, Sandro
On Fri, Aug 24, 2012 at 12:22 PM, Phillip<phlip@mrphlip.com> wrote:
The python.org server seems to be serving this page: http://docs.python.org/library/curses.ascii.html using the "us-ascii" character encoding in the headers... which causes things like the dash in the page title, and the paragraph mark "link to this section" link in the header, to display incorrectly (at least in Firefox and Chrome, the browsers I have available to test it in).
It doesn't appear to be happening on any other pages... I think the web server is just guessing the content type based on the filename.
You are exactly right; I have now added AddCharset utf-8 .ascii to the docs config. Thanks for pointing that out. Perhaps this entire content negotiation should be disabled. Regards, Martin
participants (3)
-
"Martin v. Löwis"
-
Phillip
-
Sandro Tosi