bird-house / pyramid-phoenix

Phoenix is a Pyramid web-application to make it easy to interact with WPS services
http://pyramid-phoenix.readthedocs.io/en/latest/
Apache License 2.0
7 stars 10 forks source link

Process view fails due to unidcode exception #176

Closed cehbrecht closed 5 years ago

cehbrecht commented 5 years ago

Happens with finch WPS. Here is the exception:

  File "/opt/birdhouse/src/pyramid-phoenix/phoenix/processes/views/list.py", line 30, in view
    title="{0.title} {0.processVersion}".format(process),
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2103' in position 38: ordinal not in range(128)
cehbrecht commented 5 years ago

Fix for python 2.7 ... use u'': title=u"{0.title} {0.processVersion}".format(process)

Needs to be fixed for Python 3.x as well.

cehbrecht commented 5 years ago

fixed by PR #177.