mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
RTF Output: Replace output encoding with user defined encoding.
This commit is contained in:
parent
d410872282
commit
567ecc4256
@ -30,7 +30,7 @@ class RTFOutput(OutputFormatPlugin):
|
||||
|
||||
out_stream.seek(0)
|
||||
out_stream.truncate()
|
||||
out_stream.write(content.encode('ascii', 'replace'))
|
||||
out_stream.write(content.encode(opts.output_encoding, 'replace'))
|
||||
|
||||
if close:
|
||||
out_stream.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user