Fixed further utf8 errors in the eve_api module

This commit is contained in:
2010-06-09 10:23:31 +01:00
parent 2e628d5456
commit c73ba0c148
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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.