csv reader
Emmanuel
manouchk at gmail.com
Tue Dec 15 19:01:25 EST 2009
As csv.reader does not suport utf-8 encoded files, I'm using:
fp = codecs.open(arquivoCSV, "r", "utf-8")
self.tab=[]
for l in fp:
l=l.replace('\"','').strip()
self.tab.append(l.split(','))
It works much better except that when I do self.sel.type("q", ustring)
where ustring is a unicode string obtained from the file using the
code showed above.
Remaining problem is that I obtain <sp> insted of a regular space...
More information about the Python-list
mailing list