Fixed a small bug while printing out non ascii chars

This commit is contained in:
Holger Rapp 2009-07-30 20:03:56 +02:00
parent fdb6622073
commit 1aa73e8306

View File

@ -18,7 +18,7 @@ def unescape(s):
try: try:
return _UNESCAPE.sub(fixup,s.decode("utf-8")).encode("utf-8") return _UNESCAPE.sub(fixup,s.decode("utf-8")).encode("utf-8")
except: except:
print s.decode("utf-8") print repr(s)
def parse_content(c): def parse_content(c):
try: try: