Convert using utf-8 instead of ascii in safe_str()
This way we don't lose information and the returned string is ascii-compatible anyway
This commit is contained in:
@@ -240,4 +240,4 @@ else:
|
||||
if not isinstance(v, unicode):
|
||||
v = unicode(v)
|
||||
errors = 'replace'
|
||||
return v.encode('ascii', errors)
|
||||
return v.encode('utf-8', errors)
|
||||
|
||||
Reference in New Issue
Block a user