You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
jackatls
changed the title
epub2txt: Can't open file '/home/xacc/epub_dir/temp/epub2txt1356/OEBPS/33 - 副本.html' for reading: No such file or directory
epub2txt: Can't open file '/tmp/epub2txt1356/OEBPS/33 - 副本.html' for reading: No such file or directory
Jun 11, 2023
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
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!
The text was updated successfully, but these errors were encountered: