Re: [Python-Dev] Example workaround classes for using Unicode with csv module...

2005-06-09 Thread kent sin
The suggestion Skip is indeed very useful, however it does not work when some of the item is not string, here is another try: class UnicodeReader: def __init__(self, f, dialect=csv.excel, encoding="utf-8", **kwds): self.reader = csv.reader(f, dialect=dialect, **kwds) self.encod

[Python-Dev] Example workaround classes for using Unicode with csv module...

2005-03-18 Thread Skip Montanaro
I added UnicodeReader and UnicodeWriter example classes to the csv module docs just now. They mention problems with ASCII NUL characters (which I vaguely remember - NUL-terminated strings are used internally, right?). Do NULs still present a problem? I saw nothing in the log messages that menti