Ticket #13719 (new Bug)

Opened 3 years ago

UnicodeDecodeError in plone.app.discussion 1.0

Reported by: ajung Owned by:
Priority: minor Milestone: 4.x
Component: Unknown Version: 4.2
Keywords: Cc:

Description

notify(ObjectAddedEvent(comment.of(self), self, id))

File "/home/dgho/onkopedia-test/eggs/zope.event-3.5.2-py2.6.egg/zope/event/init.py", line 31, in notify

subscriber(event)

File "/home/dgho/onkopedia-test/eggs/zope.component-3.9.5-py2.6.egg/zope/component/event.py", line 24, in dispatch

zope.component.subscribers(event, None)

File "/home/dgho/onkopedia-test/eggs/zope.component-3.9.5-py2.6.egg/zope/component/_api.py", line 136, in subscribers

return sitemanager.subscribers(objects, interface)

File "/home/dgho/onkopedia-test/eggs/zope.component-3.9.5-py2.6.egg/zope/component/registry.py", line 321, in subscribers

return self.adapters.subscribers(objects, provided)

File "/home/dgho/onkopedia-test/eggs/zope.interface-3.6.7-py2.6-linux-x86_64.egg/zope/interface/adapter.py", line 585, in subscribers

subscription(*objects)

File "/home/dgho/onkopedia-test/eggs/zope.component-3.9.5-py2.6.egg/zope/component/event.py", line 32, in objectEventNotify

zope.component.subscribers((event.object, event), None)

File "/home/dgho/onkopedia-test/eggs/zope.component-3.9.5-py2.6.egg/zope/component/_api.py", line 136, in subscribers

return sitemanager.subscribers(objects, interface)

File "/home/dgho/onkopedia-test/eggs/zope.component-3.9.5-py2.6.egg/zope/component/registry.py", line 321, in subscribers

return self.adapters.subscribers(objects, provided)

File "/home/dgho/onkopedia-test/eggs/zope.interface-3.6.7-py2.6-linux-x86_64.egg/zope/interface/adapter.py", line 585, in subscribers

subscription(*objects)

File "/home/dgho/onkopedia-test/eggs/plone.app.discussion-1.0-py2.6.egg/plone/app/discussion/comment.py", line 307, in notify_moderator

context=obj.REQUEST)

File "/home/dgho/onkopedia-test/eggs/zope.i18n-3.7.4-py2.6.egg/zope/i18n/init.py", line 126, in translate

return util.translate(msgid, mapping, context, target_language, default)

File "/home/dgho/onkopedia-test/eggs/zope.i18n-3.7.4-py2.6.egg/zope/i18n/translationdomain.py", line 78, in translate

msgid, mapping, target_language, default, context)

File "/home/dgho/onkopedia-test/eggs/zope.i18n-3.7.4-py2.6.egg/zope/i18n/translationdomain.py", line 140, in _recursive_translate

text = interpolate(text, mapping)

File "/home/dgho/onkopedia-test/eggs/zope.i18n-3.7.4-py2.6.egg/zope/i18n/init.py", line 164, in interpolate

return _interp_regex.sub(replace, text)

File "/home/dgho/onkopedia-test/eggs/zope.i18n-3.7.4-py2.6.egg/zope/i18n/init.py", line 159, in replace

return unicode(mapping.get(param1 or param2, whole))

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128)

This happens with a Plone Document with accents in its title

Note: See TracTickets for help on using tickets.