From: Oleg Broytman Date: Thu, 14 Apr 2011 15:15:07 +0000 (+0000) Subject: Fixed a bug - restored DEFAULT_CHARSET. X-Git-Tag: v4.5.3~46 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=463fac5e388966a8ce95fc84c1c92f5a62afbc9b;p=bookmarks_db.git Fixed a bug - restored DEFAULT_CHARSET. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@330 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/parse_html/bkmk_ph_beautifulsoup.py b/parse_html/bkmk_ph_beautifulsoup.py index e02081b..0b3d2f9 100644 --- a/parse_html/bkmk_ph_beautifulsoup.py +++ b/parse_html/bkmk_ph_beautifulsoup.py @@ -18,6 +18,7 @@ from sgmllib import SGMLParser, SGMLParseError from BeautifulSoup import BeautifulSoup, CData from .bkmk_ph_util import HTMLParser +DEFAULT_CHARSET = "cp1251" # Stupid default for Russian Cyrillic # http://groups.google.com/group/beautifulsoup/browse_thread/thread/69093cb0d3a3cf63 class BadDeclParser(BeautifulSoup):