Bug #76982 | 'ascii' codec can't decode byte... cursor not handling utf8 string? | ||
---|---|---|---|
Submitted: | 8 May 2015 10:05 | Modified: | 17 Jul 2015 9:05 |
Reporter: | Tomer Paz | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / Python | Severity: | S5 (Performance) |
Version: | 2.0.3, 2.0.4 | OS: | Linux (Ubuntu 14.04.1) |
Assigned to: | CPU Architecture: | Any | |
Tags: | python mysql-connector utf8 |
[8 May 2015 10:05]
Tomer Paz
[8 May 2015 10:56]
Tomer Paz
update: just for other people who might fall into this pitfall, a work-around (or fix if you will) is to first do: subject.encode('unicode_escaped') i.e. encode the string as above before pushing it to mysql connector cursor.
[17 Jul 2015 9:05]
Andrii Nikitin
It doesn't look like MySQL Connector issue, so I close this as 'Not a bug'