import codecs import csv def csv_unireader(f, encoding="utf-8"): for row in csv.reader(codecs.iterencode(codecs.iterdecode(f, encoding), "utf-8")): yield [e.decode("utf-8") for e in row]
Diff to Previous Revision
--- revision 3 2011-07-05 21:44:05 +++ revision 4 2011-07-25 07:29:08 @@ -1,4 +1,3 @@ -from __future__ import with_statement import codecs import csv