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:
parent
58ac4faf0c
commit
a542ed48a2
|
@ -240,4 +240,4 @@ else:
|
||||||
if not isinstance(v, unicode):
|
if not isinstance(v, unicode):
|
||||||
v = unicode(v)
|
v = unicode(v)
|
||||||
errors = 'replace'
|
errors = 'replace'
|
||||||
return v.encode('ascii', errors)
|
return v.encode('utf-8', errors)
|
||||||
|
|
Loading…
Reference in New Issue