[ocrfeeder] Fix unicode problems when generating a plain text file
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Fix unicode problems when generating a plain text file
- Date: Sat, 30 Apr 2016 14:57:42 +0000 (UTC)
commit 691f54618ed17a2553f154af07a6cfb4bf887e09
Author: Joaquim Rocha <me joaquimrocha com>
Date: Sat Apr 30 16:55:17 2016 +0200
Fix unicode problems when generating a plain text file
gb#765847
src/ocrfeeder/feeder/documentGeneration.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ocrfeeder/feeder/documentGeneration.py b/src/ocrfeeder/feeder/documentGeneration.py
index fa76060..51037af 100644
--- a/src/ocrfeeder/feeder/documentGeneration.py
+++ b/src/ocrfeeder/feeder/documentGeneration.py
@@ -358,7 +358,7 @@ class PlaintextGenerator(DocumentGenerator):
self.text = ''
def addText(self, newText):
- self.text += newText
+ self.text += unicode(newText, 'utf-8')
def addPage(self, page):
self.addText(page.getTextFromBoxes())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]