From 8080bd99e0703a19c333fa8e10c70e444e12b762 Mon Sep 17 00:00:00 2001 From: Oliver Ni Date: Sat, 2 Sep 2023 15:50:00 -0700 Subject: [PATCH] Set charset for actual unicode support --- hknweb/settings/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hknweb/settings/common.py b/hknweb/settings/common.py index 53c98c57..f9a40148 100644 --- a/hknweb/settings/common.py +++ b/hknweb/settings/common.py @@ -104,6 +104,7 @@ "NAME": "hknweb", "HOST": "mysql", "OPTIONS": { + "charset": "utf8mb4", "init_command": "SET sql_mode='STRICT_TRANS_TABLES'", "read_default_file": "~/.my.cnf", },