From 8c8b419e05b74ad4f5579b15ece7298cb8bf649f Mon Sep 17 00:00:00 2001 From: John Schember Date: Tue, 1 Sep 2009 20:04:16 -0400 Subject: [PATCH] Fix bug #3380: TXT input encoding ignored. --- src/calibre/ebooks/txt/input.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/ebooks/txt/input.py b/src/calibre/ebooks/txt/input.py index 2b0245c98b..47b03181f0 100644 --- a/src/calibre/ebooks/txt/input.py +++ b/src/calibre/ebooks/txt/input.py @@ -51,6 +51,7 @@ class TXTInput(InputFormatPlugin): html_input = plugin_for_input_format('html') for opt in html_input.options: setattr(options, opt.option.name, opt.recommended_value) + options.input_encoding = 'utf-8' base = os.getcwdu() if hasattr(stream, 'name'): base = os.path.dirname(stream.name)