Skip to content

Comments

Fix for encoding issue#9

Open
gavinhughpalmer wants to merge 1 commit intorbauction:masterfrom
gavinhughpalmer:master
Open

Fix for encoding issue#9
gavinhughpalmer wants to merge 1 commit intorbauction:masterfrom
gavinhughpalmer:master

Conversation

@gavinhughpalmer
Copy link

I was seeing an issue with the the currency symbol £ which was due to an encoding issue from the response of the login call.

The error I was seeing was
Traceback (most recent call last):
session.login()
File "~/Library/Python/2.7/lib/python/site-packages/sfdclib/session.py", line 51, in login
root = ET.fromstring(r.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 character u'\xa3' in position 807: ordinal not in range(128)

I was seeing an issue with the the currency symbol £ which was due to an encoding issue from the output from the response of the login call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant