datagovuk/dgu-vagrant-puppet

Encoding themes

Closed this issue · 1 comments

The problem is with croatian words like ć,č,š etc.
When I change theme names in json themes it is all ok until i choose dataset then it breaks.
Error:
⇝ UnicodeEncodeError: 'ascii' codec can't encode character u'\u0161' in position 5: ordinal not in range(128)
View as: Interactive (full) | Text (full) | XML (full)
Module ?:120 in <Expression u'iter(h.get_package_fields(c.pkg, dict(c.pkg_extras),h.dataset_type(c.pkg_extras)))'> view

Module ckanext.dgu.lib.helpers:762 in get_package_fields view secondary_themes = str(secondary_themes) UnicodeEncodeError: 'ascii' codec can't encode character u'\u0161' in position 5: ordinal not in range(128)

I would appreciate help

themes
okolis

I believe this change should fix it:
datagovuk/ckanext-dgu@3ab5ad4