Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Reading utf-8 csv-file throws ascii error
-
I am trying to read a csv-file. Both python and csv-file are stored on icloud.
But Pythonista cannot read the file. Any ideas what causes this?
I posted a screenshot here: https://imgur.com/a/RYnvJThank you!
# coding: utf-8 import csv with open('file.csv', 'r') as f: reader = csv.reader(f) city_list = list(reader)
-
with open('file.csv', 'r', encoding='utf-8') as f:
-
@brumm thanks, that did it