X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Writers%2Fbkmk_whtml.py;h=707b52a68becf5bb00db6181fa3645bf2f247aa9;hb=157bf9010ae1174ca28a49c5f7ca83f85c9f19ff;hp=caf374737b29f3ea873cbe0c9599c931b7d233da;hpb=b40748c10b38f63a2e84ce2c4eb3e414592d0c41;p=bookmarks_db.git diff --git a/Writers/bkmk_whtml.py b/Writers/bkmk_whtml.py index caf3747..707b52a 100644 --- a/Writers/bkmk_whtml.py +++ b/Writers/bkmk_whtml.py @@ -51,7 +51,11 @@ class writer_html(Writer): self.outfile.write(' LAST_MODIFIED="%s"' % b.last_modified) if BKMK_FORMAT == "MOZILLA": if b.keyword: self.outfile.write(' SHORTCUTURL="%s"' % b.keyword) - if b.icon_href: self.outfile.write(' ICON_URI="%s"' % b.icon_href) + if b.icon_href: + value = b.icon_href + if isinstance(value, unicode): + value = value.encode('utf-8') + self.outfile.write(' ICON_URI="%s"' % value) if b.icon: self.outfile.write(' ICON="%s"' % b.icon) if b.charset: self.outfile.write(' LAST_CHARSET="%s"' % b.charset) self.outfile.write('>%s\n' % quote_title(b.name))