From: Oleg Broytman Date: Fri, 13 Aug 2010 18:54:29 +0000 (+0000) Subject: Fixed encoding. X-Git-Tag: v4.5.3~91 X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=commitdiff_plain;h=6688a7206d9b545e52cfbc4cf2adae691a1a0933 Fixed encoding. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@285 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/Robots/parse_html_beautifulsoup.py b/Robots/parse_html_beautifulsoup.py index d3778fb..e03dfce 100644 --- a/Robots/parse_html_beautifulsoup.py +++ b/Robots/parse_html_beautifulsoup.py @@ -105,8 +105,8 @@ def parse_html(filename, charset=None, log=None): else: meta_charset = False - if charset or meta_charset: - title = title.encode(charset or meta_charset) + if _charset or meta_charset: + title = title.encode(_charset or meta_charset) meta = head.find(_find_refresh, recursive=False) if meta: