From b79a601b3dd1139c94bfdf0f344705fe690a8f77 Mon Sep 17 00:00:00 2001 From: rwalter Date: Thu, 23 Jan 2025 15:15:15 +0000 Subject: [PATCH] Fixing Charset Problem with mariadb 11.4 --- pdns-tsig-from-catalog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pdns-tsig-from-catalog.py b/pdns-tsig-from-catalog.py index 9e0374a..9ffaaa5 100644 --- a/pdns-tsig-from-catalog.py +++ b/pdns-tsig-from-catalog.py @@ -28,7 +28,9 @@ mydb = mysql.connector.connect( host=pdnsconfig["default"]["gmysql-host"], user=pdnsconfig["default"]["gmysql-user"], password=pdnsconfig["default"]["gmysql-password"], - database=pdnsconfig["default"]["gmysql-dbname"] + database=pdnsconfig["default"]["gmysql-dbname"], + collation="utf8mb4_unicode_ci", + charset="utf8mb4" ) mycursor = mydb.cursor(dictionary=True)