fixed issue 1643:grid - export HTML - missing charset=UTF-8, problems with non-ASCII-chars; proposal, thanks Martin
This commit is contained in:
@@ -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
|
||||||
|
|||||||
+1
-4
@@ -3095,10 +3095,7 @@ class ExporterHTML(ExportClass):
|
|||||||
ExportClass.__init__(self, rows)
|
ExportClass.__init__(self, rows)
|
||||||
|
|
||||||
def export(self):
|
def export(self):
|
||||||
if self.rows:
|
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 '')
|
||||||
return self.rows.xml()
|
|
||||||
else:
|
|
||||||
return '<html>\n<body>\n<table>\n</table>\n</body>\n</html>'
|
|
||||||
|
|
||||||
class ExporterXML(ExportClass):
|
class ExporterXML(ExportClass):
|
||||||
label = 'XML'
|
label = 'XML'
|
||||||
|
|||||||
Reference in New Issue
Block a user