aboutsummaryrefslogtreecommitdiffstats
path: root/python/utils/db.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/utils/db.py')
-rw-r--r--python/utils/db.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/utils/db.py b/python/utils/db.py
index fcc3ab0d..ff296a46 100644
--- a/python/utils/db.py
+++ b/python/utils/db.py
@@ -56,7 +56,10 @@ def dbengine(dbname, cursor_factory=NamedTupleCursor):
drivername="mysql+mysqlconnector",
host="debian",
database=dbname,
- query={"option_files": os.path.expanduser("~/.my.cnf")},
+ query={
+ "option_files": os.path.expanduser("~/.my.cnf"),
+ "collation": "utf8mb4_0900_ai_ci",
+ },
)
return create_engine(uri, paramstyle="format")
else: