This commit is contained in:
Kovid Goyal 2007-09-06 17:21:49 +00:00
parent 4673151e0f
commit 76af4c11d0
2 changed files with 2 additions and 2 deletions

View File

@ -1585,4 +1585,4 @@ def main(args=sys.argv):
if __name__ == '__main__': if __name__ == '__main__':
sys.exit(main()) sys.exit(main())

View File

@ -43,7 +43,7 @@ def generate_html(txtfile, encoding, logger):
''' '''
enc = encoding enc = encoding
if not encoding: if not encoding:
encodings = ['cp1252', 'latin-1', 'iso-8859-1', 'koi8_r', 'koi8_u', 'utf8'] encodings = ['cp1252', 'latin-1', 'utf8', 'iso-8859-1', 'koi8_r', 'koi8_u']
txt, enc = None, None txt, enc = None, None
for encoding in encodings: for encoding in encodings:
try: try: