From c2e5ff7bd3f705a19dd39cd71dfa2a2b83d6b003 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Tue, 4 Dec 2018 22:25:57 +0900 Subject: [PATCH] Support utf8mb3 --- MySQLdb/connections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MySQLdb/connections.py b/MySQLdb/connections.py index aa9c752..96b0152 100644 --- a/MySQLdb/connections.py +++ b/MySQLdb/connections.py @@ -300,7 +300,7 @@ class Connection(_mysql.connection): set can only be changed in MySQL-4.1 and newer. If you try to change the character set from the current value in an older version, NotSupportedError will be raised.""" - if charset == "utf8mb4": + if charset in ("utf8mb4", "utf8mb3"): py_charset = "utf8" else: py_charset = charset