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...
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to