CC-2633: added new encode_to()
- added encode_to() to api_client - replaced .encode() with new encode_to()
This commit is contained in:
parent
a199585cb9
commit
8995e828ff
10 changed files with 54 additions and 33 deletions
|
@ -232,7 +232,7 @@ class AirtimeMetadata:
|
|||
if (isinstance(md[key], basestring)):
|
||||
#self.logger.info("Converting md[%s] = '%s' ", key, md[key])
|
||||
md[key] = api_client.to_unicode(md[key])
|
||||
md[key] = md[key].encode('utf-8')
|
||||
md[key] = api_client.encode_to(md[key], 'utf-8')
|
||||
#self.logger.info("Converting complete: md[%s] = '%s' ", key, md[key])
|
||||
|
||||
return md
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue