-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 386: LookupError: unknown encoding: utf8mb3 #406
Conversation
unknown encoding: utf8mb3
Can you take a look at this potential fix please? |
Another solution would be to bump pymysql to v1.1.0 which now has support for utfmb3 |
@Samira-El can you confirm that we can bump to v1.1.0 of PyMySQL ? It sound a more clean idea Thanks a lot for the help |
Hi, we're running |
Thanks I did a new release with the version of PyMYSQL changed. |
Issue: #386
For databases/tables that use
utf8mb3
, row events cannot be parse and fail withLookupError: unknown encoding: utf8mb3
because pymysql has no charsetutf8mb3
.python-mysql-replication/pymysqlreplication/row_event.py
Line 255 in b306dd7
I'm proposing this fix that intercepts the charset and changes it to
utf8
if it'sutf8mb3
.In Mariadb and Mysql
utf8
is an alias forutf8mb3
, and mysql has deprecatedutf8mb3
and recommends usingutf8mb4
.