diff --git a/database.py b/database.py index a6da949..c004598 100644 --- a/database.py +++ b/database.py @@ -34,7 +34,11 @@ class Database(): Opens a connection to the app's database and executes the SQL statements passed to this function. """ - with MySQLdb.connect(user=self.user,passwd=self.key,db=self.db) as cur: + with MySQLdb.connect( + user=self.user, + passwd=self.key, + db=self.db, + charset='utf8mb4') as cur: cur.execute(*args, **kwargs) return cur