Try to handle UTF8 errors better.
svn: r1084
This commit is contained in:
parent
915a55695a
commit
fe8d1ea409
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user