fixed issue 1643:grid - export HTML - missing charset=UTF-8, problems with non-ASCII-chars; proposal, thanks Martin

This commit is contained in:
mdipierro
2013-08-21 04:39:55 -05:00
parent d1525cf6ec
commit 70a8284cb5
2 changed files with 2 additions and 5 deletions

View File

@@ -1 +1 @@
Version 2.6.0-development+timestamp.2013.08.21.04.28.27
Version 2.6.0-development+timestamp.2013.08.21.04.38.11

View File

@@ -3095,10 +3095,7 @@ class ExporterHTML(ExportClass):
ExportClass.__init__(self, rows)
def export(self):
if self.rows:
return self.rows.xml()
else:
return '<html>\n<body>\n<table>\n</table>\n</body>\n</html>'
return '<html>\n<head>\n<meta http-equiv="content-type" content="text/html; charset=UTF-8" />\n</head>\n<body>\n%s\n</body>\n</html>' % (self.rows.xml() or '')
class ExporterXML(ExportClass):
label = 'XML'