Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for encoding issue #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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