[Checkins] SVN: five.formlib/trunk/src/five/formlib/formbase.py - restored part of the old behavior (CMF 2.2 depends on it)
Yvo Schubbe
y.2011 at wcm-solutions.de
Wed Mar 9 02:58:06 EST 2011
Log message for revision 120814:
- restored part of the old behavior (CMF 2.2 depends on it)
Changed:
U five.formlib/trunk/src/five/formlib/formbase.py
-=-
Modified: five.formlib/trunk/src/five/formlib/formbase.py
===================================================================
--- five.formlib/trunk/src/five/formlib/formbase.py 2011-03-08 21:06:19 UTC (rev 120813)
+++ five.formlib/trunk/src/five/formlib/formbase.py 2011-03-09 07:58:05 UTC (rev 120814)
@@ -44,6 +44,9 @@
# decoded first and the page encoding is set before proceeding.
def update(self):
+ # BBB: for CMFDefault < 2.3 (explicit charset required)
+ self.request.RESPONSE.setHeader('Content-Type',
+ 'text/html; charset=%s' % HTTPRequest.default_encoding)
# BBB: for Zope < 2.14
if not getattr(self.request, 'postProcessInputs', False):
processInputs(self.request, [HTTPRequest.default_encoding])
More information about the checkins
mailing list