[Tutor] UnicodeDecodeError while parsing a .csv file.

Danny Yoo dyoo at hashcollision.org
Tue Oct 29 00:54:33 CET 2013


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/409ce5f8/attachment.html>


More information about the Tutor mailing list