From: Oleg Broytman Date: Wed, 10 Oct 2007 16:18:20 +0000 (+0000) Subject: Fixed a bug: import codecs. X-Git-Tag: v4.5.3~294 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=89da3d3a6fef5ce76d0bce4904c134a6e7f5fc6a;p=bookmarks_db.git Fixed a bug: import codecs. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@82 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/Robots/parse_html.py b/Robots/parse_html.py index 25b3bb0..90b777b 100755 --- a/Robots/parse_html.py +++ b/Robots/parse_html.py @@ -5,6 +5,8 @@ Written by BroytMann. Copyright (C) 1997-2007 PhiloSoft Design """ +import codecs + from m_lib.defenc import default_encoding current_charset = default_encoding.replace("windows-", "cp") DEFAULT_CHARSET = "cp1251" # Stupid default for Russian Cyrillic