To fix the ereader2html.py script itself, open it in a text editor and look for the line that contains:
final = '<html><body>\n'
There should be only one such line.
Change it to read:
final = '<html><head><META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; c
harset=cp1252"/></head><body>\n'
(all one line.)
Now the HTML files it produces will properly declare themselves to be in cp1252 and the Calibre GUI will handle them correctly.
|