mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Fixed further utf8 errors in the eve_api module
This commit is contained in:
@@ -101,7 +101,7 @@ def import_eve_character(api_key, user_id, character_id):
|
||||
params=auth_params,
|
||||
no_cache=False)
|
||||
|
||||
dom = minidom.parseString(char_doc.body)
|
||||
dom = minidom.parseString(char_doc.body.encode('utf-8'))
|
||||
if dom.getElementsByTagName('error'):
|
||||
return
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ def __start_full_import():
|
||||
print "Querying /eve/AllianceList.xml.aspx/"
|
||||
alliance_doc = CachedDocument.objects.api_query('/eve/AllianceList.xml.aspx')
|
||||
print "Parsing..."
|
||||
dom = minidom.parseString(alliance_doc.body)
|
||||
dom = minidom.parseString(alliance_doc.body.encode('utf-8'))
|
||||
result_node_children = dom.getElementsByTagName('result')[0].childNodes
|
||||
|
||||
# This will hold a reference to the <rowset name="alliances> Element.
|
||||
|
||||
Reference in New Issue
Block a user