fixed issue 1643:grid - export HTML - missing charset=UTF-8, problems with non-ASCII-chars; proposal, thanks Martin
This commit is contained in:
2
VERSION
2
VERSION
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user