[ocrfeeder] Fix unicode issues when exporting ODT
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Fix unicode issues when exporting ODT
- Date: Sat, 20 Dec 2014 22:39:55 +0000 (UTC)
commit a1166c80f6b547026d06565ec5ca8d3282f693bc
Author: Joaquim Rocha <me joaquimrocha com>
Date: Tue Dec 16 00:16:14 2014 +0000
Fix unicode issues when exporting ODT
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 ac38d1a..418ecde 100644
--- a/src/ocrfeeder/feeder/documentGeneration.py
+++ b/src/ocrfeeder/feeder/documentGeneration.py
@@ -248,7 +248,7 @@ class OdtGenerator(DocumentGenerator):
self.document.automaticstyles.addElement(frame_style_rotated)
def addText(self, data_box):
- text = unicode(data_box.getText(), 'utf-8')
+ text = data_box.getText().decode('utf-8')
frame_style = Style(name='FrameStyle', family = 'graphic')
debug('Angle: ', data_box.text_data.angle)
angle = data_box.text_data.angle
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]