mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Fixing unicode issues in eve_api and eve_proxy. Shouldn't blow its guts on the russian alliances
This commit is contained in:
@@ -79,10 +79,9 @@ class EVEPlayerCorporationManager(models.Manager):
|
||||
"""
|
||||
corp_doc = CachedDocument.objects.api_query('/corp/CorporationSheet.xml.aspx',
|
||||
params={'corporationID': id})
|
||||
corp_dat = corp_doc.body.decode("utf-8", "replace")
|
||||
|
||||
# Convert incoming data to UTF-8.
|
||||
dom = minidom.parseString(corp_dat)
|
||||
dom = minidom.parseString(corp_doc.body.encode('utf-8'))
|
||||
|
||||
error_node = dom.getElementsByTagName('error')
|
||||
|
||||
@@ -93,4 +92,4 @@ class EVEPlayerCorporationManager(models.Manager):
|
||||
raise InvalidCorpID(id)
|
||||
|
||||
return dom
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user