]> git.phdru.name Git - bookmarks_db.git/blobdiff - bkmk_parser.py
Split hrefs into domain and path components; recode only domain.
[bookmarks_db.git] / bkmk_parser.py
index 9d5bc0feeeeb465c01a85e997638d6d4a5547342..d4b6a2f32e05d6a8c3676f1415afa7ef1f441dfd 100644 (file)
@@ -152,7 +152,8 @@ class BkmkParser(HTMLParser):
 
       debug("Bookmark points to: `%s'" % href)
       bookmark = Bookmark(href, add_date, last_visit, last_modified,
-         keyword=keyword, icon=icon, charset=charset)
+         keyword=keyword, icon=icon,
+         charset=charset, parser_charset=self.charset or default_encoding)
       self.current_object = bookmark
       self.current_folder.append(bookmark)
       self.urls += 1