From 6688a7206d9b545e52cfbc4cf2adae691a1a0933 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 13 Aug 2010 18:54:29 +0000 Subject: [PATCH] Fixed encoding. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@285 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- Robots/parse_html_beautifulsoup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.39.2