[ZCM] [ZC] 1977/ 1 Request "ZPublisher: content-type header should contain 'charset'"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Mon Dec 19 07:31:33 EST 2005


Issue #1977 Update (Request) "ZPublisher: content-type header should contain 'charset'"
 Status Pending, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/1977

==============================================================
= Request - Entry #1 by ajung on Dec 19, 2005 7:31 am

The ZPublisher converts unicode content using the configured
zpublisher_default_encoding in zope.conf. When you set
the default encoding to UTF-8 and *don't* specify the his encoding using RESPONSE.setHeader('content-type', 'text/XXX; charset=utf-8') then the browser will display the page using another encoding (usually ascii/latin1).

Solution:
ZPublisher should add the 'charset' to content-type header
if it is unset.
==============================================================



More information about the Zope-Collector-Monitor mailing list