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

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Tue Dec 20 01:20:04 EST 2005


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

==============================================================
= Resolve - Entry #2 by ajung on Dec 20, 2005 1:20 am

 Status: Pending => Resolved

Fixed on the trunk (r40890) and 2.9 branch (r40891).
________________________________________
= 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