From 643f6e704848a0aa271d1bbe460200ab6d6e4613 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 11 Dec 2011 03:27:18 +0000 Subject: [PATCH] Convert to unicode and back again to unescape unichr'd entities. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@344 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- bkmk_objects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bkmk_objects.py b/bkmk_objects.py index 281b95c..4847e2c 100644 --- a/bkmk_objects.py +++ b/bkmk_objects.py @@ -214,6 +214,6 @@ def quote_title(title): def unquote_title(title): if BKMK_FORMAT == "MOZILLA": from HTMLParser import HTMLParser - title = HTMLParser().unescape(title.replace("&", '&')) - title = title.replace("'", "'") + title = HTMLParser().unescape(title.replace("&", '&').decode('utf-8')) + title = title.encode('utf-8').replace("'", "'") return title -- 2.39.5