Skip to content


Browse files Browse the repository at this point in the history
Merge pull request #6871 from borysiasty/dbmanager_unicode_fix
[DBManager] Fix encoding error if a field/table/database/file name co…
  • Loading branch information
borysiasty committed Apr 27, 2018
2 parents 9ce55ca + e5aaf6a commit 85fd681
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion python/plugins/db_manager/db_plugins/
Expand Up @@ -36,7 +36,14 @@ def toHtml(self):
if hasattr(, 'toHtml'):

html = unicode("\n", "<br>")
if isinstance(, str):
html = unicode(, encoding='utf-8', errors='replace')
elif isinstance(, unicode):
html =
html = unicode(
html = html.replace("\n", "<br>")

return html

def hasContents(self):
Expand Down

0 comments on commit 85fd681

Please sign in to comment.