Fix: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 11: ordinal not in range(128)

This commit is contained in:
Michael Bideau 2019-07-22 17:41:00 +02:00
parent 62dae769d6
commit 719687287c
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ def normalize(value):
"""Normalize a value to be send to openADS.API."""
if value is None:
return ''
return clean_spaces(str(value))
return clean_spaces(unicode(value))
def get_file_data(path, b64=True):