Skip to content
Snippets Groups Projects
Unverified Commit 9a8a5c2e authored by Paul Wise's avatar Paul Wise
Browse files

ftbfs: use UTF-8 encoding for the database

Fixes crashes when encountering UTF-8 bug titles.
parent dfa3c94c
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,7 @@ class AttrDict(dict):
class Db:
def __init__(self, database):
self.conn = psycopg2.connect(database)
self.conn.set_client_encoding('utf-8')
self.cursor = self.conn.cursor()
def query(self, query, cols, **parameters):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment