Try to handle UTF8 errors better.

svn: r1084
This commit is contained in:
Don Allingham
2002-07-23 03:33:07 +00:00
parent a1076cb3c8
commit ceac34e3be

View File

@ -39,7 +39,7 @@ else:
try: try:
return y.encode("iso-8859-1") return y.encode("iso-8859-1")
except: except:
return y.encode("<Invalid UNICODE>") return s
def latin_to_utf8(s): def latin_to_utf8(s):
buff = cStringIO.StringIO() buff = cStringIO.StringIO()