campaignmonitor / createsend-python

A Python library for the Campaign Monitor API
http://campaignmonitor.github.io/createsend-python
MIT License
57 stars 64 forks source link

Support unicode in json_to_py #37

Closed bharling closed 7 years ago

bharling commented 7 years ago

We have some custom fields on one of our lists that use unicode characters specifically the sign for british pounds (£). These cause a unicode decode error when trying to load the custom fields in the python api ( python 2.7 )

the error is in the utils.py:

https://github.com/campaignmonitor/createsend-python/blob/master/createsend/utils.py#L109