mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
TXT Output: Fix Vietnamese  character being stripped from output. Fixes #1825770 [Miss character when convert to txt](https://bugs.launchpad.net/calibre/+bug/1825770)
This commit is contained in:
parent
d9c22e7e1c
commit
2aa2de4a68
@ -1,4 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import print_function
|
||||
|
||||
__license__ = 'GPL 3'
|
||||
__copyright__ = '2009, John Schember <john@nachtimwald.com>'
|
||||
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user