csvkit icon indicating copy to clipboard operation
csvkit copied to clipboard

sql2csv ask to use PYTHONIOENCODING but even with it the query does not complete

Open calebeaires opened this issue 6 years ago • 2 comments

Python 3 CSVKit 1.0.5 Ubuntu 18

Everything were working ok, but at some point it stop working.

Error

Your file is not "utf8" encoded. Please specify the correct encoding 
with the -e flag or with the PYTHONIOENCODING environment variable

I have tried to execute the command with -e flag or with python tag like above, but still does not run and print the same error:

PYTHONIOENCODING='utf-8' sql2csv -H -e utf8 --db 'mysql+mysqldb:// (...)

calebeaires avatar Jul 28 '20 15:07 calebeaires

Can you share a sample file that causes the error? Impossible to debug, otherwise.

jpmckinney avatar Sep 07 '20 20:09 jpmckinney

how was this PYTHONIOENCODING resolved?

UncleSamTech avatar Oct 01 '22 21:10 UncleSamTech