git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@175
fdd5c36f-1aea-0310-aeeb-
c58d7e2b6c23
import codecs
-from m_lib.defenc import default_encoding
-current_charset = default_encoding.replace("windows-", "cp")
-
universal_charset = "utf-8"
DEFAULT_CHARSET = "cp1251" # Stupid default for Russian Cyrillic
if __name__ == '__main__':
import sys
+ from m_lib.defenc import default_encoding
+ current_charset = default_encoding.replace("windows-", "cp")
+
parser = parse_html(sys.argv[1], universal_charset)
print parser.charset
print parser.title