Try to handle UTF8 errors better.

svn: r1084
This commit is contained in:
Don Allingham 2002-07-23 03:33:07 +00:00
parent 915a55695a
commit fe8d1ea409

View File

@ -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()