Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with special characters in Text of the Privacy Policy link #10

Open
agitator opened this issue May 31, 2018 · 0 comments
Open

Error with special characters in Text of the Privacy Policy link #10

agitator opened this issue May 31, 2018 · 0 comments

Comments

@agitator
Copy link

agitator commented May 31, 2018

for example "Protection des données"

version 0.3.0 with Plone 5.1.2

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 19: ordinal not in range(128)

 - Expression: "view/json_data"
 - Filename:   ... -py2.7.egg/collective/jsconfiguration/browser/viewlet.pt
 - Location:   (line 10: col 30)
 - Source:     tal:repeat="json_data view/json_data"
                                     ^^^^^^^^^^^^^^
 - Arguments:  repeat: {...} (0)
               template: <ViewPageTemplateFile - at 0x7fa95fc51150>
               views: <ViewMapper - at 0x7fa94ffbec50>
               modules: <instance - at 0x7fa9862f0098>
               args: <tuple - at 0x7fa98f156050>
               here: <ImplicitAcquisitionWrapper Plone at 0x7fa95ea31050>
               user: <ImplicitAcquisitionWrapper - at 0x7fa95c120460>
               nothing: <NoneType - at 0x8fe4d0>
               container: <ImplicitAcquisitionWrapper Plone at 0x7fa95ea31050>
               request: <instance - at 0x7fa94ff42ea8>
               wrapped_repeat: <SafeMapping - at 0x7fa94fe5ed08>
               traverse_subpath: <list - at 0x7fa94fe69a28>
               default: <object - at 0x7fa98f071570>
               loop: {...} (1)
               context: <ImplicitAcquisitionWrapper Plone at 0x7fa95ea31050>
               view: <SimpleViewletClass from /home/plone/buildout/eggs/collective.jsconfiguration-0.1.1-py2.7.egg/collective/jsconfiguration/browser/viewlet.pt collective.jsconfiguration at 0x7fa954081550>
               translate: <function translate at 0x7fa94fe6aa28>
               root: <ImplicitAcquisitionWrapper Zope at 0x7fa954e7cfa0>
               options: {...} (0)
               target_language: <NoneType - at 0x8fe4d0>
(12 additional frame(s) were not displayed)
...
  File "home/plone/buildout/eggs/collective.jsconfiguration-0.1.1-py2.7.egg/collective/jsconfiguration/browser/viewlet.py", line 38, in json_data
    'data': json.dumps(provider())})
  File "rer/cookieconsent/jsconfiguration/configuration.py", line 28, in __call__
    data_settings = IJSONifier(settings).json()
  File "home/plone/buildout/eggs/collective.regjsonify-0.2.0-py2.7.egg/collective/regjsonify/jsonify.py", line 33, in json
    result[name] = field_data.data(settings)
  File "home/plone/buildout/eggs/collective.regjsonify-0.2.0-py2.7.egg/collective/regjsonify/fields.py", line 44, in data
    result.append(subfield_data.data(x))
  File "rer/cookieconsent/jsconfiguration/fields_adapter.py", line 50, in data
    r'\2'),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant