Fix: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 11: ordinal not in range(128)
This commit is contained in:
parent
62dae769d6
commit
719687287c
|
@ -83,7 +83,7 @@ def normalize(value):
|
||||||
"""Normalize a value to be send to openADS.API."""
|
"""Normalize a value to be send to openADS.API."""
|
||||||
if value is None:
|
if value is None:
|
||||||
return ''
|
return ''
|
||||||
return clean_spaces(str(value))
|
return clean_spaces(unicode(value))
|
||||||
|
|
||||||
|
|
||||||
def get_file_data(path, b64=True):
|
def get_file_data(path, b64=True):
|
||||||
|
|
Reference in New Issue