I am trying to convert a local HTML to a PDF, but the html document has non-ASCII characters that end up broken in the PDF. Why does pisa
not work for all UTF-8 characters?
with open('file.html') as m:
data = m.read()
m.close()
pisa.CreatePDF(data, file('final.pdf', 'w'))