Closed JoeGermuska closed 4 years ago
I don't think this is a bug. You need to provide agate-sql with UTF-8. That's how csvkit does it; it changes the encoding before passing to agate-sql.
Ah, nevermind – this is to do with from_sql
, not to_sql
.
Python 2 is now EOL.
over on the News Nerd slack, @chrislkeller reported problems with a unicode database.
Further discussion in there suggested adding an
encoding
kwarg tofrom_sql
. A little sniffing suggests that you can also manipulate the connection string to force results to utf-8, although I don't know what you'd do if aConnection
were passed in, or if for some reason the string argument already had URL parameters.