Skip to content

Commit c2e5ff7

Browse files
committed
Support utf8mb3
1 parent 20ee2e3 commit c2e5ff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MySQLdb/connections.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def set_character_set(self, charset):
300300
set can only be changed in MySQL-4.1 and newer. If you try
301301
to change the character set from the current value in an
302302
older version, NotSupportedError will be raised."""
303-
if charset == "utf8mb4":
303+
if charset in ("utf8mb4", "utf8mb3"):
304304
py_charset = "utf8"
305305
else:
306306
py_charset = charset

0 commit comments

Comments
 (0)