Output fails when some characters are used in ebook metadata

Bug #1528942 reported by Romaric Loret
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kobo Touch Extended Driver
Incomplete
High
Joel Goguen

Bug Description

When trying to output an ebook to the Kobo, using KoboTouchExtended, it fails if some characters are in the metadata, such as in the title.
Example of a title causing the plugin to fail:

calibre, version 2.47.0
ERREUR : Erreur: Erreur pendant la communication avec le dispositif

Échec de l'analyse de 'Histoire du théâtre: « Que sais-je ? » n° 160 (French Edition)' par 'Alain Viala' avec l'erreur : 'All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters' (fichier: calibre_plugins.kobotouch_extended.common, ligne : 43)

Traceback (most recent call last):
  File "site-packages/calibre/gui2/device.py", line 87, in run
  File "site-packages/calibre/gui2/device.py", line 584, in _upload_books
  File "calibre_plugins.kobotouch_extended.device.driver", line 294, in upload_books
  File "site-packages/calibre/devices/kobo/driver.py", line 1918, in upload_books
  File "calibre_plugins.kobotouch_extended.device.driver", line 231, in _modify_epub
InvalidEPub: Échec de l'analyse de 'Histoire du théâtre: « Que sais-je ? » n° 160 (French Edition)' par 'Alain Viala' avec l'erreur : 'All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters' (fichier: calibre_plugins.kobotouch_extended.common, ligne : 43)

Calibre 2.47.0
KoboTouchExtended 2.5.3

Revision history for this message
Joel Goguen (jgoguen) wrote :

Please upload a book (or two) reproducing this problem to https://www.dropbox.com/request/zaqgAhp6i0duKczN3VHu

Changed in calibre-kobo-driver:
status: New → Incomplete
importance: Undecided → High
assignee: nobody → Joel Goguen (jgoguen)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.