Ticket #13404 (confirmed Bug)
UnicodeEncodeError issues in plone.app.theming for Plone 4.3
Reported by: | jianaijun | Owned by: | davisagli |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | Theme Editor (plone.app.themeeditor) | Version: | 4.3 |
Keywords: | UnicodeEncodeError, winesprint | Cc: |
Description (last modified by jianaijun) (diff)
in Plone 4.3
- Open /Plone/@@theming-controlpanel
- Click "New theme"
- Title OR Description Input Non-ASCII
- Click "Create"
Traceback:
2013-01-11 23:33:15 ERROR Zope.SiteErrorLog 1357918395.60.809799806521 http://localhost:8080/Plone/@@theming-controlpanel Traceback (innermost last): Module ZPublisher.Publish, line 126, in publish Module ZPublisher.mapply, line 77, in mapply Module ZPublisher.Publish, line 46, in call_object Module plone.app.theming.browser.controlpanel, line 50, in __call__ Module plone.app.theming.browser.controlpanel, line 287, in update Module plone.app.theming.utils, line 534, in createThemeFromTemplate Module ConfigParser, line 412, in write UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
Change History
comment:1 Changed 3 years ago by jianaijun
- Keywords UnicodeEncodeError added
- Owner set to davisagli
- Component changed from Unknown to Theme Editor (plone.app.themeeditor)
- Description modified (diff)
comment:2 Changed 3 years ago by vangheem
FWIW, it seems that the ConfigParser python module does not support writing unicode. The only option is to depend on the python 3.2 backport of the module: http://pypi.python.org/pypi/configparser/3.3.0r2
Otherwise, it seems there isn't a way to fix this unless we actually strip unicode on save...
Note: See
TracTickets for help on using
tickets.