CSV readers and UTF-8 files
clp2 at rebertia.com
Fri Feb 20 08:35:50 CET 2009
On Thu, Feb 19, 2009 at 8:11 AM, Falcolas <garrickp at gmail.com> wrote:
> 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.
This really ought to be fixed for 3.0+ (seems to still be ASCII-only
according to the 3.0 docs...)
Follow the path of the Iguana...
More information about the Python-list