[Tutor] UnicodeDecodeError while parsing a .csv file.
SM
sunithanc at gmail.com
Tue Oct 29 02:48:27 CET 2013
Thanks to all, for so much information.
I just checked that the encoding is Latin-1 and it works when I use it in
the file open call. (instead of ignoring it).
On Mon, Oct 28, 2013 at 7:54 PM, Danny Yoo <dyoo at hashcollision.org> wrote:
> Hi Sm,
>
> Note: if possible, I would strongly suggest reusing csv.reader rather than
> reinvent this. It comes in Python's Standard Library:
>
> http://docs.python.org/3/library/csv.html#module-csv
>
> ---
>
> Anyway, to your question. Do you know what is the encoding of your input
> file?
>
> (And if you don't know what this question means, please ask! Look at:
> http://www.joelonsoftware.com/articles/Unicode.html, and skip down to
> "The Single Most Import Fact About Encodings")
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20131028/8300bd3c/attachment-0001.html>
More information about the Tutor
mailing list