Skip to content

Errors with Unicode (EncodeError: 'ascii' codec can't encode characters in position) #1

@pliske

Description

@pliske

Hello, this library is awesome, but in using it I am running into some data related problems.
I am using the client.get_lead_activity() method

UnicodeEncodeError: 'ascii' codec can't encode characters in position xx

....."get_lead_activity.py", line 17, in unwrap
root = ET.fromstring(response.text)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1300, in XML
parser.feed(text)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1640, in feed
self._parser.Parse(data, 0)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 9393-9402: ordinal not in range(128)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions