We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
2 parents 9ce55ca + e5aaf6a commit 85fd681Copy full SHA for 85fd681
python/plugins/db_manager/db_plugins/html_elems.py
@@ -36,7 +36,14 @@ def toHtml(self):
36
if hasattr(self.data, 'toHtml'):
37
return self.data.toHtml()
38
39
- html = unicode(self.data).replace("\n", "<br>")
+ if isinstance(self.data, str):
40
+ html = unicode(self.data, encoding='utf-8', errors='replace')
41
+ elif isinstance(self.data, unicode):
42
+ html = self.data
43
+ else:
44
+ html = unicode(self.data)
45
+ html = html.replace("\n", "<br>")
46
+
47
return html
48
49
def hasContents(self):
0 commit comments