You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found some issues with some records stored in a MySQL database.
At this line, an UnicodeDecodeError exception is raised when I'm fetching data from a specific table:
I know that the issue is caused by some malformed data store in MySQL that cannot be decoded as UTF-8 since they were incorrectly encoded in the first place.
But it would be nice if the driver has a better way to deal with these cases by simply adding an option in the connection defining the string decode configuration: 'strict', 'ignore', 'replace' or 'backslashreplace'.
So, basically I'm proposing to add the following option to the connection class.
:param str decode_errors='strict':
The default value is 'strict' but it can accept 'ignore' or 'replace' in PY2
And in PY3 it can be also set as 'backslashreplace'