Try to handle UTF8 errors better.
svn: r1084
This commit is contained in:
parent
915a55695a
commit
fe8d1ea409
@ -39,7 +39,7 @@ else:
|
||||
try:
|
||||
return y.encode("iso-8859-1")
|
||||
except:
|
||||
return y.encode("<Invalid UNICODE>")
|
||||
return s
|
||||
|
||||
def latin_to_utf8(s):
|
||||
buff = cStringIO.StringIO()
|
||||
|
Loading…
Reference in New Issue
Block a user