Version 1.3.3 - 2009-01-10
- Feature: ljdump now prompts for login info if ljdump.config does not exist
+- Bugfix: Automatically handle UnicodeDecodeError for old entries
Version 1.3.2 - 2009-01-09
if isinstance(e[k], {}.__class__):
dumpelement(f, k, e[k])
else:
- s = unicode(str(e[k]), "UTF-8")
+ try:
+ s = unicode(str(e[k]), "UTF-8")
+ except UnicodeDecodeError:
+ # fall back to Latin-1 for old entries that aren't UTF-8
+ s = unicode(str(e[k]), "cp1252")
f.write("<%s>%s</%s>\n" % (k, saxutils.escape(s), k))
f.write("</%s>\n" % name)