default-zpublisher-encoding and zpt encoding
default-zpublisher-encoding in zope.conf seems not to work in zope 2.7.9, the server response don't set any charset. While: <head tal:define="dummy python:request.RESPONSE.setHeader('Content-Type','text/html;; charset=ISO-8859-1')"> works, and the characters are displayed ok. But I cannot modify all the templates around and I'm looking for a general solution. The problem is to replicate a 2.6 Zope (run with -L it_IT) with 2.7.9. Zope 2.6 returns: Content-Type: text/html; charset=iso-8859-1 while Zope 2.7.9 returns: Content-Type: text/html Here the zope.conf part (default-zpublisher-encoding is ok, default_zpublisher_encoding don't exists in zopeschema.xml): ====== # Directive: locale # # Description: # Enable locale (internationalization) support by supplying a locale # name to be used. See your operating system documentation for locale # information specific to your system. If your Python module does not # support the locale module, or if the requested locale is not # supported by your system, an error will be raised and Zope will not # start. # # Default: unset # # Example: # # locale fr_FR locale it_IT # Directive: default_zpublisher_encoding # # Description: # This controls what character set is used to encode unicode # data that reaches ZPublisher without any other specified encoding. # # Default: iso-8859-15 # # Example: # # default_zpublisher_encoding iso-8859-15 default-zpublisher-encoding iso-8859-1 ====== I've commented out also the locale part, but still the same issue. Any idea? Thanks :)
--On 2. April 2008 15:59:58 +0200 Yuri <yurj@alfa.it> wrote:
default-zpublisher-encoding in zope.conf seems not to work in zope 2.7.9, the server response don't set any charset.
While: <head tal:define="dummy python:request.RESPONSE.setHeader('Content-Type','text/html;; charset=ISO-8859-1')">
works, and the characters are displayed ok. But I cannot modify all the templates around and I'm looking for a general solution.
The problem is to replicate a 2.6 Zope (run with -L it_IT) with 2.7.9.
Zope 2.6 returns:
Content-Type: text/html; charset=iso-8859-1
while Zope 2.7.9 returns:
Content-Type: text/html
Here the zope.conf part (default-zpublisher-encoding is ok, default_zpublisher_encoding don't exists in zopeschema.xml):
Zope 2.6 and Zope 2.7 are a absolutely out-of-date. Andreas
Andreas Jung wrote:
--On 2. April 2008 15:59:58 +0200 Yuri <yurj@alfa.it> wrote:
default-zpublisher-encoding in zope.conf seems not to work in zope 2.7.9, the server response don't set any charset.
While: <head tal:define="dummy python:request.RESPONSE.setHeader('Content-Type','text/html;; charset=ISO-8859-1')">
works, and the characters are displayed ok. But I cannot modify all the templates around and I'm looking for a general solution.
The problem is to replicate a 2.6 Zope (run with -L it_IT) with 2.7.9.
Zope 2.6 returns:
Content-Type: text/html; charset=iso-8859-1
while Zope 2.7.9 returns:
Content-Type: text/html
Here the zope.conf part (default-zpublisher-encoding is ok, default_zpublisher_encoding don't exists in zopeschema.xml):
Zope 2.6 and Zope 2.7 are a absolutely out-of-date.
Andreas
I know, thanks.
Yuri wrote:
--On 2. April 2008 15:59:58 +0200 Yuri <yurj@alfa.it> wrote:
default-zpublisher-encoding in zope.conf seems not to work in zope 2.7.9, the server response don't set any charset.
While: <head tal:define="dummy python:request.RESPONSE.setHeader('Content-Type','text/html;; charset=ISO-8859-1')">
works, and the characters are displayed ok. But I cannot modify all the templates around and I'm looking for a general solution.
The problem is to replicate a 2.6 Zope (run with -L it_IT) with 2.7.9.
Zope 2.6 returns:
Content-Type: text/html; charset=iso-8859-1
while Zope 2.7.9 returns:
Content-Type: text/html
Here the zope.conf part (default-zpublisher-encoding is ok, default_zpublisher_encoding don't exists in zopeschema.xml):
Strange, but using a different apache it has worked as expected, the encoding is sent now, FYI :)
Hi Yuri.
Strange, but using a different apache it has worked as expected, the encoding is sent now, FYI :)
Just out of curiosity : which version of apache did you have and which do you use now? Martijn. -- Martijn Jacobs Four Digits, Internet Solutions a: Willemsplein 15-1 6811 KB Arnhem NL kvk: 091621370000 | btw: 8161.22.234.B01 e-mail: martijn@fourdigits.nl | web: http://www.fourdigits.nl tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117
Yuri wrote at 2008-4-2 15:59 +0200:
default-zpublisher-encoding in zope.conf seems not to work in zope 2.7.9, the server response don't set any charset.
I fear you have to debug this yourself because we no longer remember details relevant for Zope 2.7. -- Dieter
participants (4)
-
Andreas Jung -
Dieter Maurer -
Martijn Jacobs -
Yuri