[Zope-dev] [ZPublisher] specifiying 'charset' for the content-type header

Andreas Jung lists at andreas-jung.com
Thu Dec 22 01:14:27 EST 2005



--On 21. Dezember 2005 18:07:49 +0000 Chris Withers 
<chris at simplistix.co.uk> wrote:
>
> How will Zope know when _not_ to add the content-type header?

Makes no sense to me. Either the application set the content-type header or 
Zope does it for you. Check HTTPResponse.py.

>
> How will Zope tell if the charset is "undefined" and what does
> "undefined" mean in this context?

The HTTP spec says that a http server *can* set the charset to make the 
encoding of the payload clear. That's what we are doing now. Not specifying 
the charset means for the browser: *guessing* the encoding which means the 
browser defaults to some unspecified default encoding.

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20051222/2c81bca3/attachment.bin


More information about the Zope-Dev mailing list