View Single Post
Old 03-20-2013, 05:53 PM   #40
cakiran
Member
cakiran began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Mar 2013
Device: Bluefire reader, samsung galaxy s3
Quote:
Originally Posted by JimmXinu View Post
Interesting.

In windows, on command line, epubsplit throws an encoding error when it tries to include line 2 in the TOC. That's a line of deliberately difficult characters--it is a testing file after all.

It works fine in calibre, and it works fine if you skip that line. I'll look into it.

The split.epub was started, but it wasn't finished. That's why it appears as if it somewhat worked. Running on CLI, you should have seen error message when it failed.
Tried on 2 files including the sample from you and am getting the following error message on CLI.

File "C:\Python27\lib\codecs.py", line 351, in write
data, consumed = self.encode(object, self.errors)
nicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 21: ordinal
not in range(128)

File "C:\Python27\lib\codecs.py", line 351, in write
data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 98: ordinal
not in range(128)
cakiran is offline   Reply With Quote