Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Unicode in Python 3. Parent comment
This works fine, as does the corresponding writer:
reader = csv.reader(open(FILENAME, 'rb')) for row in reader: print row
value = row[0].decode('utf8')
row[0] = value.encode('utf8')
There are no comments on this comment yet.
This works fine, as does the corresponding writer:
If you want a unicode string it's as simple as: Then before writing: