Submitted by : swiesebach at: 2010-02-04T23:57:14-08:00 (7 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

When using Zope 2.11.4, Zwiki 2.0b1 and ReStructuredText? an UnicodeEncodeError? occurs after editing numbered lists with (e. g.) german umlauts.

Please inspect the UnicodeEncodeErrorTestPage for the detailed error message.

Rendering the test page in this instance of zwiki/zope is no problem; Which version combination is running here?

As an alternative patch switching the rendering to StructuredText cures the problem, too.

... --Simon Michael, Fri, 05 Feb 2010 09:31:25 -0800 reply

zwiki.org is running 2.0b1 and zope 2.12. I would try running / upgradeAll if you haven't already.. also check your rst encodings are set to utf-8 in zope.conf ?

Great! Thank you for your immediate help! --swiesebach, Fri, 12 Feb 2010 06:47:08 -0800 reply

Changing the zope.conf file in my instance of Zope to:

# Directive: rest-input-encoding
#
# Description:
#    Specifies the input encoding of re-StructuredText documents
#    (e.g. 'utf-8', 'iso-8859-15' or any other valid encoding recognized
#    by Python).  The default is your Python's default encoding.
#
# Default: unset (uses system default)
#
# Example:
#
#    rest-input-encoding iso-8859-15
rest-input-encoding utf-8

# Directive: rest-output-encoding
#
# Description:
#    Specifies the output encoding of re-StructuredText documents
#    (e.g. 'utf-8', 'iso-8859-15' or any other valid encoding recognized
#    by Python).  The default is your Python's default encoding.
#
# Default: unset (uses system default)
#
# Example:
#
#    rest-output-encoding iso-8859-15
rest-output-encoding utf-8

...cures the problem - even with 2.11.4

User failure (Zope newbie) :) --swiesebach, Fri, 12 Feb 2010 06:49:16 -0800 reply

Status: open => closed