-
Notifications
You must be signed in to change notification settings - Fork 86
Closed
Description
Possibly related to #73, but at a different point in execute()
.
For transactions with non-ASCII characters, I'm getting UnicodeEncodeError: 'ascii' codec can't encode characters in position 873-874: ordinal not in range(128)
when retrieving transaction details.
File "[virtualenv]/lib/python2.7/site-packages/authorizenet/apicontrollersbase.py", line 156, in execute
domResponse = xml.dom.minidom.parseString(self._httpResponse)
File "/usr/lib64/python2.7/xml/dom/minidom.py", line 1928, in parseString
return expatbuilder.parseString(string)
File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 940, in parseString
return builder.parseString(string)
File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 876-877: ordinal not in range(128)
#75 added xml.dom.minidom.parseString(self._httpResponse.encode('utf-8').decode('utf-8'))
when logging an error see here, but the initial response parsing doesn't do so, and raises an uncaught exception.
Metadata
Metadata
Assignees
Labels
No labels