Removed the 'replace' option on encoding. Caused exception
svn: r1166
This commit is contained in:
parent
7036479568
commit
0bc6bba161
@ -37,7 +37,7 @@ else:
|
||||
def utf8_to_latin(s):
|
||||
y = UTF8String(s)
|
||||
try:
|
||||
return y.encode("iso-8859-1",'replace')
|
||||
return y.encode("iso-8859-1")
|
||||
except:
|
||||
return s
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user