Ticket #13404 (confirmed Bug)

Opened 3 years ago

Last modified 3 years ago

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

  1. Open /Plone/@@theming-controlpanel
  2. Click "New theme"
  3. Title OR Description Input Non-ASCII
  4. 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...

comment:3 Changed 3 years ago by esteele

  • Keywords UnicodeEncodeError, winesprint added; UnicodeEncodeError removed

comment:4 Changed 3 years ago by kleist

  • Status changed from new to confirmed

comment:5 Changed 3 years ago by andrgrau

We have/had the same issue when installing Plone 4.3b2 and editing theme settings. We also had problems with jQuery which did not work at first but after disbling and enabling it, both jQuery and theme editing worked.

Note: See TracTickets for help on using tickets.