mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #3380 (Conversion to LRF ignore input text code page)
This commit is contained in:
parent
881a08686a
commit
111830363f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user