Il giorno 9 febbraio 2016 12:35, Manlio Perillo <manlio.peri...@gmail.com> ha scritto: > > > Dovresti anche dirci gli headers che restituisce il server HTTP, in > particolare il Content-Type. >
Taaaaaac ! HTTP/1.1 200 OK Date: Tue, 09 Feb 2016 11:51:12 GMT Server: Apache X-Powered-By: PHP/5.5.31 Content-Disposition: attachment; filename=data.csv Cache-Control: max-age=0 Expires: Tue, 09 Feb 2016 11:51:12 GMT Content-Type: text/csv; Il problema potrebbe essere che panda, quando scarica il file tramite > HTTP, ignori l'encoding che gli passi ed invece usa quello specificato > dal server HTTP, oppure cerca di indovinarlo. > > Comunque un consiglio: **non** assumere che l'encoding sia latin-1, ma > usa cp1252 invece. > Do una occhiata al codice di pandas, ma presumo che il problema sia quello... Ora prova ad utilizzare cp1252 e vedo se da problemi. -- I wish you a good day, Christian
_______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python