I am working on upgrading different add-ons to python 3 / 5.2.
When working on collective.z3cform.colorpicker I discovered that I get error on rich text field for some content if the field contains international character (ÆØÅ).
How do I troubleshot this?
2019-03-05 15:41:32 ERROR Zope.SiteErrorLog 1551796892.540.618312781417 http://localhost:8086/Plone/asdfasdf/@@edit-tile/collective.themefragments.fragment/90a6808417d34569946b11312660b87a
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module plone.z3cform.layout, line 63, in __call__
Module plone.z3cform.layout, line 57, in update
Module plone.app.tiles.browser.base, line 105, in render
Module z3c.form.form, line 162, in render
Module zope.browserpage.viewpagetemplatefile, line 49, in __call__
Module zope.pagetemplate.pagetemplate, line 137, in pt_render
Module five.pt.engine, line 98, in __call__
Module z3c.pt.pagetemplate, line 163, in render
Module chameleon.zpt.template, line 261, in render
Module chameleon.template, line 171, in render
Module 8ddcaf7be27ded16472cf2c090a77ead.py, line 91, in render
Module 44a2fe2566492b4630348325426a380b.py, line 1826, in render_titlelessform
Module 44a2fe2566492b4630348325426a380b.py, line 451, in render_fields
Module 44a2fe2566492b4630348325426a380b.py, line 126, in render_widget_rendering
Module 44a2fe2566492b4630348325426a380b.py, line 1069, in render_field
Module five.pt.expressions, line 161, in __call__
Module Products.Five.browser.metaconfigure, line 485, in __call__
Module zope.browserpage.viewpagetemplatefile, line 81, in __call__
Module zope.browserpage.viewpagetemplatefile, line 49, in __call__
Module zope.pagetemplate.pagetemplate, line 137, in pt_render
Module five.pt.engine, line 98, in __call__
Module z3c.pt.pagetemplate, line 163, in render
Module chameleon.zpt.template, line 261, in render
Module chameleon.template, line 191, in render
Module chameleon.template, line 171, in render
Module 44cc946657eb21d583772eddbcb3f200.py, line 610, in render
Module 44cc946657eb21d583772eddbcb3f200.py, line 481, in render_widget_wrapper
Module five.pt.expressions, line 161, in __call__
Module plone.app.z3cform.widget, line 694, in render
Module plone.app.widgets.base, line 334, in __init__
Module plone.app.widgets.base, line 348, in _set_value
Module lxml.etree, line 1020, in lxml.etree._Element.text.__set__
Module lxml.etree, line 711, in lxml.etree._setNodeText
Module lxml.etree, line 699, in lxml.etree._createTextNode
Module lxml.etree, line 1439, in lxml.etree._utf8
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
- Expression: "widget/@@ploneform-render-widget"
- Filename: ... rm-3.0.8-py2.7.egg/plone/app/z3cform/templates/macros.pt
- Location: (line 100: col 81)
- Source: ... place="structure widget/@@ploneform-render-widget"/>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Expression: "widget/render"
- Filename: ... rm-3.0.8-py2.7.egg/plone/app/z3cform/templates/widget.pt
- Location: (line 39: col 46)
- Source: ... xt" tal:replace="structure widget/render"
^^^^^^^^^^^^^
- Arguments: repeat: {...} (0)
context: <RichTextWidget xtext at 0x1115f6bd0>
views: <ViewMapper - at 0x10698ecd0>
modules: <TraversableModuleImporter - at 0x1068ba110>
args: <tuple - at 0x104795050>
nothing: <NoneType - at 0x7fff988076a8>
target_language: <NoneType - at 0x7fff988076a8>
default: <object - at 0x1047ebae0>
request: <instance - at 0x1104c8e18>
wrapped_repeat: {...} (0)
loop: {...} (0)
template: <ViewPageTemplateFile - at 0x10c82de90>
translate: <function translate at 0x10694d5f0>
options: {...} (0)
view: <RenderWidget ploneform-render-widget at 0x10698e710>
PS: xtext is just the name of the field (changed it from 'text' to see if it matters…