Commit fab1dccd authored by Mikaël Salson's avatar Mikaël Salson
Browse files

vidjil_utils: character encoding

Prefer using unicode(s).encode('utf-8') than unicode(s, 'utf-8'). Why? Don't know.
parent ea001d55
......@@ -123,7 +123,7 @@ def safe_encoding(string):
returns the string.
return unicode(string, 'utf-8')
return unicode(string).encode('utf-8')
except UnicodeDecodeError:
return string
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment