View Single Post
Old 07-28-2009, 01:39 AM   #29
mjmcleod
Connoisseur
mjmcleod is a marvel to beholdmjmcleod is a marvel to beholdmjmcleod is a marvel to beholdmjmcleod is a marvel to beholdmjmcleod is a marvel to beholdmjmcleod is a marvel to beholdmjmcleod is a marvel to beholdmjmcleod is a marvel to beholdmjmcleod is a marvel to beholdmjmcleod is a marvel to beholdmjmcleod is a marvel to behold
 
Posts: 55
Karma: 11501
Join Date: Jul 2009
Location: Australia
Device: Galaxy Tab
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.
mjmcleod is offline   Reply With Quote