Fix HTML encoding output support. (This should have been committed on 30 Jan 2013, when the same change was made to trunk and gramps40, and around the same time when related changes were made to gramps34)

svn: r21346
This commit is contained in:
Tim G L Lyons 2013-02-13 11:02:52 +00:00
parent 6c4be7c5b2
commit f732f907fe

View File

@ -200,7 +200,7 @@ class Html(list):
if title is not None: if title is not None:
head += (Html('title', title, inline=True, indent=True)) head += (Html('title', title, inline=True, indent=True))
if html5: if html5:
head += Html('meta', charset="utf-8", indent=True) head += Html('meta', charset=encoding, indent=True)
else: else:
meta1 = 'http-equiv="content-type" content="text/html;charset=%s"' meta1 = 'http-equiv="content-type" content="text/html;charset=%s"'
meta2 = 'http-equiv="Content-Style-Type" content="text/css"' meta2 = 'http-equiv="Content-Style-Type" content="text/css"'