[Python-apps-team] Bug#811571: Bug#811571: ocrfeeder: Unicode characters break exports

Jean-Marc jean-marc at 6jf.be
Sun Apr 17 09:15:11 UTC 2016


Sun, 17 Apr 2016 10:51:12 +0200
Jean-Marc <jean-marc at 6jf.be> écrivait :

> On Tue, 26 Jan 2016 10:26:42 +0100 Alberto Garcia <berto at igalia.com> wrote:
> 
> Hi Berto,
> 
> > Can you share a document that you can use to reproduce that bug? I
> > just tried with an image containing accented non-ascii characters and
> > I can export it just fine to PDF, TXT, HTML and ODT.
> 
> I attached a PFD file I used to test ocrfeeder.
> And giving the same error.

Actualy, it is not the same error.

>>>>>>>>>
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/studioBuilder.py", line 298, in exportDialog
    self.EXPORT_FORMATS[format][1])
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/studioBuilder.py", line 281, in exportToFormat
    name)
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/widgetModeler.py", line 606, in exportPagesWithGenerator
    document_generator.save()
  File "/usr/lib/python2.7/dist-packages/ocrfeeder/feeder/documentGeneration.py", line 371, in save
    f.write(self.text.encode('utf-8'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 67: ordinal not in range(128)
<<<<<<<<<<

> 
> > 
> > Berto
> > 
> 
> Regards,
> 
> Jean-Marc <jean-marc at 6jf.be>


Jean-Marc <jean-marc at 6jf.be>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20160417/18149980/attachment.sig>


More information about the Python-apps-team mailing list