]> git.phdru.name Git - bookmarks_db.git/commitdiff
Encode entities.
authorOleg Broytman <phd@phdru.name>
Mon, 11 Feb 2008 20:11:30 +0000 (20:11 +0000)
committerOleg Broytman <phd@phdru.name>
Mon, 11 Feb 2008 20:11:30 +0000 (20:11 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@173 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

bkmk_parser.py

index 41df9ef30bd78b15f34bdb28f223b0f72f40c9db..4cc8897e23f7b5737f9203e5664ef988b459acb3 100644 (file)
@@ -45,7 +45,7 @@ class BkmkParser(HTMLParser):
    def handle_data(self, data):
       if data:
          if DEFAULT_CHARSET:
-            data = unicode(data, self.charset, "replace").encode(DEFAULT_CHARSET, "replace")
+            data = unicode(data, self.charset, "replace").encode(DEFAULT_CHARSET, "xmlcharrefreplace")
          self.accumulator += data