From 719687287cf08b5d506a911de95255d8094fd790 Mon Sep 17 00:00:00 2001 From: Michael Bideau Date: Mon, 22 Jul 2019 17:41:00 +0200 Subject: [PATCH] Fix: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 11: ordinal not in range(128) --- atreal_openads/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atreal_openads/models.py b/atreal_openads/models.py index 5b1c4e8..98257b8 100644 --- a/atreal_openads/models.py +++ b/atreal_openads/models.py @@ -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):