[docs] [pydotorg-www] Character Encoding corner case

"Martin v. Löwis" martin at v.loewis.de
Fri Aug 31 17:15:21 CEST 2012


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 at 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



More information about the docs mailing list