LookupError: unknown encoding when character_set_client is utf8mb4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oursql |
New
|
Undecided
|
Unassigned |
Bug Description
When setting MySQL character_
Traceback (most recent call last):
File "test_utf8mb4.py", line 20, in <module>
results = cursor.fetchone()
File "oursqlx/
File "oursqlx/util.pyx", line 47, in oursql.
File "oursqlx/
LookupError: unknown encoding: utf8mb4
This error doesn't occur when setting character set to "utf8" or "latin1".
Python 2.7.11
oursql 0.9.3.1, 0.9.3.2
MySQL client/server 5.6.24-72.2
Mac OS X 10.10.5
Test script attached using the MySQL test database. No tables required.