From 2aa2de4a6853900fa8144eaea5f06e5ee1bef861 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 22 Apr 2019 08:41:44 +0530 Subject: [PATCH] =?UTF-8?q?TXT=20Output:=20Fix=20Vietnamese=20=C3=82=20cha?= =?UTF-8?q?racter=20being=20stripped=20from=20output.=20Fixes=20#1825770?= =?UTF-8?q?=20[Miss=20character=20when=20convert=20to=20txt](https://bugs.?= =?UTF-8?q?launchpad.net/calibre/+bug/1825770)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/calibre/ebooks/txt/txtml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/txt/txtml.py b/src/calibre/ebooks/txt/txtml.py index 2ef99d4884..220cb56e6d 100644 --- a/src/calibre/ebooks/txt/txtml.py +++ b/src/calibre/ebooks/txt/txtml.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +from __future__ import print_function __license__ = 'GPL 3' __copyright__ = '2009, John Schember ' @@ -116,7 +117,6 @@ class TXTMLizer(object): def cleanup_text(self, text): self.log.debug('\tClean up text...') # Replace bad characters. - text = text.replace(u'\xc2', '') text = text.replace(u'\xa0', ' ') # Replace tabs, vertical tags and form feeds with single space.