Commit 1c2bc6ae authored by Jérome Perrin's avatar Jérome Perrin

fixup! Force default-zpublisher-encoding to utf-8

zope.conf default encoding is also used for responses and converters, so
for consistency we should also force default encoding there.
This is especially useful when running tests, because zope.conf is not
used and default values are used.
parent 9720f8d8
......@@ -27,6 +27,10 @@
##############################################################################
import ZPublisher.HTTPRequest
import ZPublisher.HTTPResponse
import ZPublisher.Converters
# Force (do not depend on) the default-zpublisher-encoding setting of zope.conf
ZPublisher.HTTPRequest.default_encoding = 'utf-8'
ZPublisher.HTTPResponse.default_encoding = 'utf-8'
ZPublisher.Converters.default_encoding = 'utf-8'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment