Removed the 'replace' option on encoding. Caused exception
svn: r1166
This commit is contained in:
parent
dfa1a99ba4
commit
1dab3b879e
@ -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