ZReST Product charset default encodings

Bug #142781 reported by Barry Pederson
2
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Low
Unassigned

Bug Description

I noticed that by default, a ReStructuredText Document from the ZRest Product has the defaul input_encoding and output_encoding properties fixed to 'iso-8859-15'. It doesn't seem to be affected by the 'rest-input-encoding' or 'rest-output-encoding' properties in zope.conf (mentioned as a new feature in 2.7.0b1)

The rest of Zope seems to be thinking 'utf-8'; on my box I'm seeing inconsistent charsets in a test document between the HTTP header and the document source:

HTTP HEADER:
   Content-Type: text/html; charset=iso-8859-15

DOCUMENT SOURCE:
  <?xml version="1.0" encoding="utf-8" ?>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

---------

I'd think that somehow lib/python/Products/ZReST/ZReST.py should have its default encodings the same as found in lib/python/reStructuredText/__init__.py

Tags: bug zope
Revision history for this message
Andreas Jung (ajung) wrote :

Status: Pending => Resolved

Fixed on the SVN HEAD and 2.7 branch.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.