ckan / ckan/ckanext-spatial

Encoding error in helper get_responsible_party

Open
#115 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
XSLT
Stars
136
Forks
207
PR merge metrics
No merged PRs in 30d

Description

Hello,

I am using the helper "get_responsible_party" but it doesn't work with my metadata

An example is when the field "responsible-party" has the value:

```
[{"name": "Instituto Geol\u00f3gico y Minero de Espa\u00f1a (IGME)", "roles": ["pointOfContact"]}]
```

When i watch the detail metadata page, the field is showed in json and in the log this message is showed:

```
'ascii' codec can't encode character u'\xf3' in position 14: ordinal not in range(128)
```

The error is in the line 54 from the file ckanext-spatial/ckanext/spatial/helpers.py:

```
h.json.loads(value)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.