kevinboone/epub2txt2

epub2txt: Can't open file '/tmp/epub2txt1356/OEBPS/33 - 副本.html' for reading: No such file or directory

Opened this issue · 3 comments

when convert some files occurs this problem(lots of files can be converted correctly),it seems because that some spaces appear in the name of the html file which is created,but I don't know where to modify the this output filename,I have attempted to modify the tmp directory to my own temp dir but it doesn't work,I need your help sincerely,thanks a lot!

when convert some files occurs this problem(lots of files can be converted correctly),it seems because that some spaces appear in the name of the html file which is created,but I don't know where to modify the this output filename,I have attempted to modify the tmp directory to my own temp dir but it doesn't work,I need your help sincerely,thanks a lot!

I have solved this by modify it in the epub2txt.c:
run_command ((const char *[]){"unzip", "-O","CP936","-o", "-qq", file, "-d", tempdir,
NULL}, TRUE);
it is a encoding problem of unzip,I added -O CP936 to unzip correctly for chinese

Hi. I'm concerned that adding "-O CP936" will break things for other users. I wonder if there might be another way to solve the problem? Could you supply me with an epub file that shows the problem, so I can try to fix it?

Hi. I'm concerned that adding "-O CP936" will break things for other users. I wonder if there might be another way to solve the problem? Could you supply me with an epub file that shows the problem, so I can try to fix it?

thanks for your reply,you can download the epub here
link