CSV readers and UTF-8 files

Falcolas garrickp at gmail.com
Thu Feb 19 17:11:16 CET 2009

On Feb 19, 7:21 am, mk <mrk... at gmail.com> wrote:
> Hello everyone,
> Is it just me or CSV reader/DictReader and UTF-8 files do not work
> correctly in Python 2.6.1 (Windows)?

I would point out in the CSV module documentation (http://
docs.python.org/library/csv.html) it explicitly mentions that it can't
handle unicode.

You can use their workaround in the examples section for UTF-8, or
with another form of encoding (I used MIME) for UTF-16.


More information about the Python-list mailing list